From f1642106ced3d5222ad7c2f04a417087fee02efc Mon Sep 17 00:00:00 2001 From: "linuxrc@163.com" Date: Thu, 21 Nov 2019 17:05:35 +0800 Subject: 适配最新的tango cache client. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/include/cache_evbase_client.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/cache_evbase_client.h') diff --git a/src/include/cache_evbase_client.h b/src/include/cache_evbase_client.h index feab191..991015a 100644 --- a/src/include/cache_evbase_client.h +++ b/src/include/cache_evbase_client.h @@ -18,7 +18,8 @@ struct cache_evbase_instance struct cache_evbase_ctx { - size_t object_size; //tango_ctxԱ޷عֱӻȡĻڶдһ + size_t object_size; //tango_ctxԱ޷عֱӻȡĻڶдһ + struct evbuffer *evbuf; struct tango_cache_ctx *ctx; struct tango_losf_meta *losf_meta; //LOSFһϴʱûctx struct cache_evbase_instance *instance_asyn; @@ -38,6 +39,7 @@ struct tango_cache_parameter *cache_evbase_parameter_new(const char* profile_pat /*ʵ̰߳ȫڲһ߳*/ struct cache_evbase_instance *cache_evbase_instance_new(struct tango_cache_parameter *param, void *runtimelog); +struct event_base *cache_evbase_get_event_base(struct cache_evbase_instance *instance); /******************************************* GETӿ ****************************************/ //ɹ0ʧܷ-1futureصִ߳Уͬ -- cgit v1.2.3