支持promise finish。
This commit is contained in:
1
cache/include/cache_evbase_client.h
vendored
1
cache/include/cache_evbase_client.h
vendored
@@ -58,6 +58,7 @@ struct cache_evbase_ctx *cache_evbase_update_start(struct cache_evbase_instance
|
||||
int cache_evbase_update_frag_data(struct cache_evbase_ctx *ctx_asyn, enum PUT_MEMORY_COPY_WAY way, const char *data, size_t size);
|
||||
int cache_evbase_update_frag_evbuf(struct cache_evbase_ctx *ctx_asyn, struct evbuffer *evbuf);
|
||||
void cache_evbase_update_end(struct cache_evbase_ctx *ctx_asyn);
|
||||
void cache_evbase_update_cancel(struct cache_evbase_ctx *ctx_asyn);
|
||||
|
||||
void cache_evbase_get_object_path(const struct cache_evbase_ctx *ctx, char *path/*OUT*/, size_t pathsize);
|
||||
|
||||
|
||||
2
cache/include/tango_cache_client.h
vendored
2
cache/include/tango_cache_client.h
vendored
@@ -22,6 +22,7 @@ enum CACHE_ERR_CODE
|
||||
CACHE_ERR_REDIS_JSON,
|
||||
CACHE_ERR_REDIS_CONNECT,
|
||||
CACHE_OUTOF_SESSION,
|
||||
CACHE_UPDATE_CANCELED,
|
||||
};
|
||||
|
||||
enum PUT_MEMORY_COPY_WAY
|
||||
@@ -149,6 +150,7 @@ struct tango_cache_ctx *tango_cache_update_start(struct tango_cache_instance *in
|
||||
int tango_cache_update_frag_data(struct tango_cache_ctx *ctx, const char *data, size_t size);
|
||||
int tango_cache_update_frag_evbuf(struct tango_cache_ctx *ctx, enum EVBUFFER_COPY_WAY way, struct evbuffer *evbuf);
|
||||
void tango_cache_update_end(struct tango_cache_ctx *ctx);
|
||||
void tango_cache_update_cancel(struct tango_cache_ctx *ctx);
|
||||
|
||||
//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>keyֵ<79><D6B5><EFBFBD><EFBFBD>CACHE_OBJECT_KEY_HASH_SWITCH=1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>URL/<2F>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>ϣʱ<CFA3><CAB1><EFBFBD><EFBFBD>
|
||||
void tango_cache_get_object_path(const struct tango_cache_ctx *ctx, char *path/*OUT*/, size_t pathsize);
|
||||
|
||||
Reference in New Issue
Block a user