forked from buaazp/zimg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zcache.h
35 lines (28 loc) · 808 Bytes
/
zcache.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
/*
* zimg - high performance image storage and processing system.
* http://zimg.buaa.us
*
* Copyright (c) 2013, Peter Zhao <[email protected]>.
* All rights reserved.
*
* Use and distribution licensed under the BSD license.
* See the LICENSE file for full text.
*
*/
/**
* @file zcache.h
* @brief header of memcached functions.
* @author 招牌疯子 [email protected]
* @version 1.0
* @date 2013-07-23
*/
#ifndef ZCACHE_H
#define ZCACHE_H
#include "zcommon.h"
int exist_cache(const char *key);
int find_cache(const char *key, char *value);
int set_cache(const char *key, const char *value);
int find_cache_bin(const char *key, char **value_ptr, size_t *len);
int set_cache_bin(const char *key, const char *value, const size_t len);
int del_cache(const char *key);
#endif