forked from alibaba/nginx-tfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngx_http_tfs_remote_block_cache.h
34 lines (20 loc) · 1.24 KB
/
ngx_http_tfs_remote_block_cache.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright (C) 2010-2012 Alibaba Group Holding Limited
*/
#ifndef _NGX_HTTP_TFS_REMOTE_BLOCK_CACHE_H_INCLUDED_
#define _NGX_HTTP_TFS_REMOTE_BLOCK_CACHE_H_INCLUDED_
#include <ngx_http_tfs_block_cache.h>
ngx_int_t ngx_http_tfs_remote_block_cache_lookup(ngx_http_tfs_remote_block_cache_ctx_t *ctx,
ngx_pool_t *pool, ngx_log_t *log, ngx_http_tfs_block_cache_key_t* key);
ngx_int_t ngx_http_tfs_remote_block_cache_insert(ngx_http_tfs_remote_block_cache_ctx_t *ctx,
ngx_pool_t *pool, ngx_log_t *log, ngx_http_tfs_block_cache_key_t *key,
ngx_http_tfs_block_cache_value_t *value);
void ngx_http_tfs_remote_block_cache_remove(ngx_http_tfs_remote_block_cache_ctx_t *ctx,
ngx_pool_t *pool, ngx_log_t *log, ngx_http_tfs_block_cache_key_t *key);
ngx_int_t ngx_http_tfs_remote_block_cache_batch_lookup(ngx_http_tfs_remote_block_cache_ctx_t *ctx,
ngx_pool_t *pool, ngx_log_t *log, ngx_array_t* keys);
ngx_int_t ngx_http_tfs_remote_block_cache_batch_insert(ngx_http_tfs_remote_block_cache_ctx_t *ctx,
ngx_pool_t *pool, ngx_log_t *log, ngx_array_t *kvs);
ngx_int_t ngx_http_tfs_get_remote_block_cache_instance(ngx_http_tfs_remote_block_cache_ctx_t *ctx,
ngx_str_t *server_addr);
#endif /* _NGX_HTTP_TFS_REMOTE_BLOCK_CACHE_H_INCLUDED_ */