将读取配置单独抽出形成parameter API;支持Redis多机备份和故障切换。
This commit is contained in:
5
cache/include/tango_cache_client.h
vendored
5
cache/include/tango_cache_client.h
vendored
@@ -95,6 +95,7 @@ struct tango_cache_meta_put
|
||||
struct response_freshness put;
|
||||
};
|
||||
|
||||
struct tango_cache_parameter;
|
||||
struct tango_cache_instance;
|
||||
struct tango_cache_ctx;
|
||||
|
||||
@@ -105,9 +106,11 @@ void tango_cache_get_statistics(const struct tango_cache_instance *instance, str
|
||||
/*ÿ<><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>һ<EFBFBD>γ<EFBFBD>ʼ<EFBFBD><CABC>*/
|
||||
void tango_cache_global_init(void);
|
||||
|
||||
//ÿ<><C3BF>minio<69><6F>Ⱥ<EFBFBD><C8BA>bucket<65><74><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>parameter
|
||||
struct tango_cache_parameter *tango_cache_parameter_new(const char* profile_path, const char* section, void *runtimelog);
|
||||
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>API<50>̲߳<DFB3><CCB2><EFBFBD>ȫ*/
|
||||
//ÿ<><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̴߳<DFB3><CCB4><EFBFBD>һ<EFBFBD><D2BB>instance
|
||||
struct tango_cache_instance *tango_cache_instance_new(struct event_base* evbase,const char* profile_path, const char* section, void *runtimelog);
|
||||
struct tango_cache_instance *tango_cache_instance_new(struct tango_cache_parameter *param, struct event_base* evbase, void *runtimelog);
|
||||
|
||||
|
||||
/* GET<45>ӿڵ<D3BF>API*/
|
||||
|
||||
Reference in New Issue
Block a user