~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/query_cache.h

Merged latest changes from plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
  virtual ~QueryCache() {}
48
48
  /* Lookup the cache and transmit the data back to the client */
49
 
  virtual bool try_fetch_and_send(Session *session,
50
 
                                  bool is_transactional)= 0;
 
49
  virtual bool tryFetchAndSend(Session *session,
 
50
                               bool is_transactional)= 0;
51
51
 
52
52
  virtual bool set(Session *session, bool is_transactional)= 0;
53
 
  virtual bool invalidate_table(Session *session, bool is_transactional)= 0;
54
 
  virtual bool invalidate_db(Session *session, const char *db_name,
55
 
                             bool transactional)= 0;
 
53
  virtual bool invalidateTable(Session *session, bool is_transactional)= 0;
 
54
  virtual bool invalidateDb(Session *session, const char *db_name,
 
55
                            bool transactional)= 0;
56
56
  virtual bool flush(Session *session)= 0;
57
57
 
58
 
  static void add(QueryCache *handler);
59
 
  static void remove(QueryCache *handler);
 
58
  static bool addPlugin(QueryCache *handler);
 
59
  static void removePlugin(QueryCache *handler);
60
60
 
61
61
  /* These are the functions called by the rest of the Drizzle server */
62
 
  static bool do_try_fetch_and_send(Session *session, bool transactional);
63
 
  static bool do_set(Session *session, bool transactional);
64
 
  static bool do_invalidate_table(Session *session, bool transactional);
65
 
  static bool do_invalidate_db(Session *session, const char *db_name,
 
62
  static bool tryFetchAndSendDo(Session *session, bool transactional);
 
63
  static bool setDo(Session *session, bool transactional);
 
64
  static bool invalidateTableDo(Session *session, bool transactional);
 
65
  static bool invalidateDbDo(Session *session, const char *db_name,
66
66
                            bool transactional);
67
 
  static bool do_flush(Session *session);
 
67
  static bool flushDo(Session *session);
68
68
};
69
69
 
70
70
} /* namespace plugin */