25#define GRN_CACHE_DEFAULT_MAX_N_ENTRIES 100
GRN_API grn_rc grn_cache_default_reopen(void)
GRN_API grn_cache * grn_persistent_cache_open(grn_ctx *ctx, const char *base_path)
GRN_API grn_cache * grn_cache_current_get(grn_ctx *ctx)
Retrieve the current grn_cache object.
GRN_API grn_rc grn_cache_current_set(grn_ctx *ctx, grn_cache *cache)
Set the current grn_cache object.
GRN_API grn_rc grn_cache_close(grn_ctx *ctx, grn_cache *cache)
Free resourses of the cache.
GRN_API grn_cache * grn_cache_open(grn_ctx *ctx)
Create a new cache object.
GRN_API void grn_set_default_cache_base_path(const char *base_path)
GRN_API unsigned int grn_cache_get_max_n_entries(grn_ctx *ctx, grn_cache *cache)
Retrieve the maximum number of entries in the grn_cache object.
GRN_API const char * grn_get_default_cache_base_path(void)
GRN_API grn_rc grn_cache_set_max_n_entries(grn_ctx *ctx, grn_cache *cache, unsigned int n)
Set the maximum number of entries in the grn_cache object.
struct _grn_cache grn_cache
Cache object.
Definition cache.h:32
grn_rc
Definition groonga.h:61
#define GRN_API
Definition groonga.h:39