diff --git a/cache/include/tango_cache_client.h b/cache/include/tango_cache_client.h index 75c4e10..a0eda49 100644 --- a/cache/include/tango_cache_client.h +++ b/cache/include/tango_cache_client.h @@ -113,7 +113,7 @@ struct tango_cache_instance *tango_cache_instance_new(struct event_base* evbase, //future不可以为NULL int tango_cache_fetch_object(struct tango_cache_instance *instance, struct future* f, struct tango_cache_meta_get *meta); //从promise_success的result参数提取结果 -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接口的API*/ diff --git a/cache/src/tango_cache_client.cpp b/cache/src/tango_cache_client.cpp index 140b7e0..5a05e9a 100644 --- a/cache/src/tango_cache_client.cpp +++ b/cache/src/tango_cache_client.cpp @@ -109,7 +109,7 @@ void tango_cache_get_statistics(const struct tango_cache_instance *instance, str 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; } diff --git a/cache/src/tango_cache_client_in.h b/cache/src/tango_cache_client_in.h index 879bd1e..9dfb97e 100644 --- a/cache/src/tango_cache_client_in.h +++ b/cache/src/tango_cache_client_in.h @@ -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); 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_fetch_prepare(struct tango_cache_instance *instance, struct future* future, 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_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* f, struct tango_cache_meta_get *meta); +struct tango_cache_ctx *tango_cache_delete_prepare(struct tango_cache_instance *instance, struct future* f, const char *objkey); #endif