1 #ifdef USE_PRAGMA_INTERFACE
2 #pragma interface /* gcc class implementation */
17 memcached_create(&memc);
20 Memcached(memcached_st *clone)
23 memcached_clone(&memc, clone);
27 char *get(char *key, size_t *value_length)
32 return memcached_get(&memc, key, strlen(key),
33 value_length, &flags, &rc);
36 char *get_by_key(char *key, char *master_key, size_t *value_length)
41 return memcached_get_by_key(&memc, key, strlen(key), master_key, strlen(master_key),
42 value_length, &flags, &rc);
45 memcached_return mget(char **keys, size_t *key_length, unsigned int number_of_keys)
48 return memcached_mget(&memc, keys, key_length, number_of_keys);
51 memcached_return set(char *key, char *value, size_t value_length)
53 return memcached_set(&memc, key, strlen(key),
55 (time_t)0, (uint32_t)0);
58 memcached_return set_by_key(char *master_key, char *key, char *value, size_t value_length)
60 return memcached_set_by_key(&memc, master_key, strlen(master_key),
68 memcached_return add(char *key, char *value, size_t value_length)
70 return memcached_add(&memc, key, strlen(key),
72 (time_t)0, (uint32_t)0);
75 memcached_return replace(char *key, char *value, size_t value_length)
77 return memcached_replace(&memc, key, strlen(key),
79 (time_t)0, (uint32_t)0);
82 memcached_return prepend(char *key, char *value, size_t value_length)
84 return memcached_prepend(&memc, key, strlen(key),
91 memcached_return append(char *key, char *value, size_t value_length)
93 return memcached_append(&memc, key, strlen(key),
100 memcached_free(&memc);