1 #ifdef USE_PRAGMA_INTERFACE
2 #pragma interface /* gcc class implementation */
17 memcached_create(&memc);
20 Memcached(memcached_st *clone)
22 memcached_clone(&memc, clone);
25 char *get(char *key, size_t *value_length)
30 return memcached_get(&memc, key, strlen(key),
31 value_length, &flags, &rc);
34 char *get_by_key(char *master_key, char *key, size_t *value_length)
39 return memcached_get_by_key(&memc, master_key, strlen(master_key), key, strlen(key),
40 value_length, &flags, &rc);
43 memcached_return mget(char **keys, size_t *key_length, unsigned int number_of_keys)
46 return memcached_mget(&memc, keys, key_length, number_of_keys);
49 memcached_return set(char *key, char *value, size_t value_length)
51 return memcached_set(&memc, key, strlen(key),
53 (time_t)0, (uint32_t)0);
56 memcached_return set_by_key(char *master_key, char *key, char *value, size_t value_length)
58 return memcached_set_by_key(&memc, master_key, strlen(master_key),
66 memcached_return add(char *key, char *value, size_t value_length)
68 return memcached_add(&memc, key, strlen(key),
70 (time_t)0, (uint32_t)0);
73 memcached_return replace(char *key, char *value, size_t value_length)
75 return memcached_replace(&memc, key, strlen(key),
77 (time_t)0, (uint32_t)0);
80 memcached_return prepend(char *key, char *value, size_t value_length)
82 return memcached_prepend(&memc, key, strlen(key),
89 memcached_return append(char *key, char *value, size_t value_length)
91 return memcached_append(&memc, key, strlen(key),
98 memcached_free(&memc);