缓存业务层适配redis cluster读取文件的接口。

This commit is contained in:
zhengchao
2018-12-21 13:16:36 +06:00
parent 9430f699df
commit 4a1b4adf35
3 changed files with 67 additions and 48 deletions

View File

@@ -54,11 +54,11 @@ enum cache_pending_result web_cache_async_pending(struct cache_handle* handle, u
struct cache_update_context;
struct cache_update_context* web_cache_write_start(struct cache_handle* handle, unsigned int thread_id,
struct cache_write_context;
struct cache_write_context* web_cache_write_start(struct cache_handle* handle, unsigned int thread_id,
const struct tfe_http_session * session, struct cache_mid **mid);
void web_cache_write(struct cache_update_context* ctx, const unsigned char * body_frag, size_t frag_size);
void web_cache_write_end(struct cache_update_context* ctx);
void web_cache_write(struct cache_write_context* ctx, const unsigned char * body_frag, size_t frag_size);
void web_cache_write_end(struct cache_write_context* ctx);