5
5
* Definitions required for Query Cache plugin
7
* Copyright (C) 2008 Mark Atwood
7
* Copyright (C) 2008 Mark Atwood, Toru Maesaka
9
9
* This program is free software; you can redistribute it and/or modify
10
10
* it under the terms of the GNU General Public License as published by
23
23
#ifndef DRIZZLED_PLUGIN_QCACHE_H
24
24
#define DRIZZLED_PLUGIN_QCACHE_H
27
This is the API that a qcache plugin must implement.
28
it should implement each of these function pointers.
29
if a function pointer is NULL (not loaded), that's ok.
26
35
typedef struct qcache_st
28
/* todo, define this api */
29
/* this is the API that a qcache plugin must implement.
30
it should implement each of these function pointers.
31
if a function returns bool true, that means it failed.
32
if a function pointer is NULL, that's ok.
37
/* Lookup the cache and transmit the data back to the client */
38
bool (*qcache_try_fetch_and_send)(Session *session, bool transactional);
35
bool (*qcache_func1)(Session *session, void *parm1, void *parm2);
36
bool (*qcache_func2)(Session *session, void *parm3, void *parm4);
40
bool (*qcache_set)(Session *session, bool transactional);
41
bool (*qcache_invalidate_table)(Session *session, bool transactional);
42
bool (*qcache_invalidate_db)(Session *session, const char *db_name,
44
bool (*qcache_flush)(Session *session);
39
47
#endif /* DRIZZLED_PLUGIN_QCACHE_H */