Kouhei Sutou
null+****@clear*****
Fri Aug 23 13:41:53 JST 2013
Kouhei Sutou 2013-08-23 13:41:53 +0900 (Fri, 23 Aug 2013) New Revision: 9d759e6d2249f7660e2b02b3cf8e007b43f6a7b4 https://github.com/groonga/groonga/commit/9d759e6d2249f7660e2b02b3cf8e007b43f6a7b4 Message: Export API for the max cache limit. It is internal use for now. It should not be documented. Modified files: include/groonga.h lib/ctx.h Modified: include/groonga.h (+4 -0) =================================================================== --- include/groonga.h 2013-08-23 12:54:37 +0900 (ffefeae) +++ include/groonga.h 2013-08-23 13:41:53 +0900 (c8db6df) @@ -244,6 +244,10 @@ GRN_API grn_rc grn_ctx_set_match_escalation_threshold(grn_ctx *ctx, long long in GRN_API long long int grn_get_default_match_escalation_threshold(void); GRN_API grn_rc grn_set_default_match_escalation_threshold(long long int threshold); +/* cache */ +#define GRN_CACHE_DEFAULT_MAX_N_ENTRIES 100 +GRN_API unsigned int *grn_cache_max_nentries(void); + /* grn_encoding */ GRN_API const char *grn_encoding_to_string(grn_encoding encoding); Modified: lib/ctx.h (+0 -3) =================================================================== --- lib/ctx.h 2013-08-23 12:54:37 +0900 (819cc59) +++ lib/ctx.h 2013-08-23 13:41:53 +0900 (9e3de91) @@ -469,8 +469,6 @@ typedef struct { /**** cache ****/ -#define GRN_CACHE_DEFAULT_MAX_N_ENTRIES 100 - typedef struct { uint32_t nentries; uint32_t max_nentries; @@ -484,7 +482,6 @@ void grn_cache_unref(const char *str, uint32_t str_size); void grn_cache_update(grn_ctx *ctx, const char *str, uint32_t str_size, grn_obj *value); void grn_cache_expire(int32_t size); void grn_cache_fin(void); -GRN_API uint32_t *grn_cache_max_nentries(void); void grn_cache_get_statistics(grn_ctx *ctx, grn_cache_statistics *statistics); /**** receive handler ****/ -------------- next part -------------- HTML����������������������������... Download