Public Types | |
|
typedef std::pair< const std::string, const std::string > | map_key |
|
typedef std::map< const map_key, plugin::Plugin * > | map |
| typedef std::vector< Plugin * > | vector |
Public Member Functions | |
| MemcachedQueryCache (std::string name_arg, const std::string &servers_arg) | |
| bool | doIsCached (drizzled::Session *session) |
| bool | doSendCachedResultset (drizzled::Session *session) |
| bool | doPrepareResultset (drizzled::Session *session) |
| bool | doInsertRecord (drizzled::Session *session, drizzled::List< drizzled::Item > &item) |
| bool | doSetResultset (drizzled::Session *session) |
| char * | md5_key (const char *str) |
| void | checkTables (drizzled::Session *session, drizzled::TableList *in_table) |
| bool | isSelect (std::string query) |
| virtual void | shutdownPlugin () |
| virtual void | prime () |
| virtual void | startup (drizzled::Session &) |
| void | activate () |
| void | deactivate () |
| bool | isActive () const |
| const std::string & | getName () const |
| void | setModule (module::Module *module) |
| const std::string & | getTypeName () const |
| virtual bool | removeLast () const |
| const std::string & | getModuleName () const |
Static Public Member Functions | |
| static memcache::Memcache * | getClient () |
| static const char * | getServers () |
| static void | setServers (const std::string &server_list) |
| static bool | addPlugin (QueryCache *handler) |
| static void | removePlugin (QueryCache *handler) |
| static bool | isCached (Session *session) |
| static bool | sendCachedResultset (Session *session) |
| static bool | prepareResultset (Session *session) |
| static bool | setResultset (Session *session) |
| static bool | insertRecord (Session *session, List< Item > &item) |
Private Attributes | |
| pthread_mutex_t | mutex |
| drizzled::QueryCacheService | queryCacheService |
Static Private Attributes | |
| static memcache::Memcache * | client |
| static std::string | memcached_servers |
Definition at line 43 of file memcached_qc.h.
| bool MemcachedQueryCache::doSendCachedResultset | ( | drizzled::Session * | session | ) | [virtual] |
TODO: pay attention to the case where the cache value is empty ie: there is a session in the process of caching the query and didn't finish the work
Implements drizzled::plugin::QueryCache.
Definition at line 106 of file memcached_qc.cc.