tango_cache_read_result等函数参数调整
This commit is contained in:
2
cache/include/tango_cache_client.h
vendored
2
cache/include/tango_cache_client.h
vendored
@@ -113,7 +113,7 @@ struct tango_cache_instance *tango_cache_instance_new(struct event_base* evbase,
|
|||||||
//future<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪNULL
|
//future<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪNULL
|
||||||
int tango_cache_fetch_object(struct tango_cache_instance *instance, struct future* f, struct tango_cache_meta_get *meta);
|
int tango_cache_fetch_object(struct tango_cache_instance *instance, struct future* f, struct tango_cache_meta_get *meta);
|
||||||
//<2F><>promise_success<73><73>result<6C><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>
|
//<2F><>promise_success<73><73>result<6C><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>
|
||||||
struct tango_cache_result *tango_cache_read_result(void *promise_result);
|
struct tango_cache_result *tango_cache_read_result(future_result_t *promise_result);
|
||||||
|
|
||||||
|
|
||||||
/* DELETE<54>ӿڵ<D3BF>API*/
|
/* DELETE<54>ӿڵ<D3BF>API*/
|
||||||
|
|||||||
2
cache/src/tango_cache_client.cpp
vendored
2
cache/src/tango_cache_client.cpp
vendored
@@ -109,7 +109,7 @@ void tango_cache_get_statistics(const struct tango_cache_instance *instance, str
|
|||||||
out->memory_used = instance->statistic.memory_used;
|
out->memory_used = instance->statistic.memory_used;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tango_cache_result *tango_cache_read_result(void *promise_result)
|
struct tango_cache_result *tango_cache_read_result(future_result_t *promise_result)
|
||||||
{
|
{
|
||||||
return (struct tango_cache_result *)promise_result;
|
return (struct tango_cache_result *)promise_result;
|
||||||
}
|
}
|
||||||
|
|||||||
6
cache/src/tango_cache_client_in.h
vendored
6
cache/src/tango_cache_client_in.h
vendored
@@ -145,9 +145,9 @@ void tango_cache_ctx_destroy(struct tango_cache_ctx *ctx);
|
|||||||
void tango_cache_set_fail_state(struct tango_cache_ctx *ctx, enum CACHE_ERR_CODE error_code);
|
void tango_cache_set_fail_state(struct tango_cache_ctx *ctx, enum CACHE_ERR_CODE error_code);
|
||||||
const char *tango_cache_get_errstring(const struct tango_cache_ctx *ctx);
|
const char *tango_cache_get_errstring(const struct tango_cache_ctx *ctx);
|
||||||
|
|
||||||
struct tango_cache_ctx *tango_cache_update_prepare(struct tango_cache_instance *instance, struct future* future, struct tango_cache_meta_put *meta);
|
struct tango_cache_ctx *tango_cache_update_prepare(struct tango_cache_instance *instance, struct future* f, struct tango_cache_meta_put *meta);
|
||||||
struct tango_cache_ctx *tango_cache_fetch_prepare(struct tango_cache_instance *instance, struct future* future, struct tango_cache_meta_get *meta);
|
struct tango_cache_ctx *tango_cache_fetch_prepare(struct tango_cache_instance *instance, struct future* f, struct tango_cache_meta_get *meta);
|
||||||
struct tango_cache_ctx *tango_cache_delete_prepare(struct tango_cache_instance *instance, struct future* future, const char *objkey);
|
struct tango_cache_ctx *tango_cache_delete_prepare(struct tango_cache_instance *instance, struct future* f, const char *objkey);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user