summaryrefslogtreecommitdiff
path: root/cache
diff options
context:
space:
mode:
authorzhangchengwei <[email protected]>2018-10-15 16:53:04 +0800
committerzhangchengwei <[email protected]>2018-10-15 16:53:04 +0800
commit02deaba59db239a642c00f14f70d2a6e47f33daa (patch)
tree1fafcb76f92d445410717844684b0f5c7e3650e5 /cache
parentece26bbf602c649193e2b1c1da699cdbfe65fda5 (diff)
tango_cache_read_result等函数参数调整
Diffstat (limited to 'cache')
-rw-r--r--cache/include/tango_cache_client.h2
-rw-r--r--cache/src/tango_cache_client.cpp2
-rw-r--r--cache/src/tango_cache_client_in.h6
3 files changed, 5 insertions, 5 deletions
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