libyrmcds
memcached/yrmcds client library for C
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Functions
Public functions

Functions

const char * yrmcds_strerror (yrmcds_error e)
 Return a string to describe a library error. More...
 
yrmcds_error yrmcds_connect (yrmcds *c, const char *node, uint16_t port)
 Connecct to a memcached/yrmcds server. More...
 
yrmcds_error yrmcds_close (yrmcds *c)
 Close the connection. More...
 
yrmcds_error yrmcds_shutdown (yrmcds *c)
 Shutdown the receiving end of the socket. More...
 
yrmcds_error yrmcds_text_mode (yrmcds *c)
 Turn on text protocol mode. More...
 
yrmcds_error yrmcds_set_compression (yrmcds *c, size_t threshold)
 Enable/disable (de)compression for large objects. More...
 
int yrmcds_fileno (yrmcds *c)
 Return the underlying socket in yrmcds. More...
 
yrmcds_error yrmcds_set_timeout (yrmcds *c, int timeout)
 Set timeout seconds for send/recv operations. More...
 
yrmcds_error yrmcds_recv (yrmcds *c, yrmcds_response *r)
 Receives a response packet. More...
 
yrmcds_error yrmcds_noop (yrmcds *c, uint32_t *serial)
 Send Noop command. More...
 
yrmcds_error yrmcds_get (yrmcds *c, const char *key, size_t key_len, int quiet, uint32_t *serial)
 Send Get/GetQ command. More...
 
yrmcds_error yrmcds_getk (yrmcds *c, const char *key, size_t key_len, int quiet, uint32_t *serial)
 Send GetK/GetKQ command. More...
 
yrmcds_error yrmcds_get_touch (yrmcds *c, const char *key, size_t key_len, uint32_t expire, int quiet, uint32_t *serial)
 Send GaT/GaTQ command. More...
 
yrmcds_error yrmcds_getk_touch (yrmcds *c, const char *key, size_t key_len, uint32_t expire, int quiet, uint32_t *serial)
 Send GaTK/GaTKQ command. More...
 
yrmcds_error yrmcds_lock_get (yrmcds *c, const char *key, size_t key_len, int quiet, uint32_t *serial)
 Send LaG/LaGQ command. More...
 
yrmcds_error yrmcds_lock_getk (yrmcds *c, const char *key, size_t key_len, int quiet, uint32_t *serial)
 Send LaGK/LaGKQ command. More...
 
yrmcds_error yrmcds_touch (yrmcds *c, const char *key, size_t key_len, uint32_t expire, int quiet, uint32_t *serial)
 Send Touch command. More...
 
yrmcds_error yrmcds_set (yrmcds *c, const char *key, size_t key_len, const char *data, size_t data_len, uint32_t flags, uint32_t expire, uint64_t cas, int quiet, uint32_t *serial)
 Send Set/SetQ command. More...
 
yrmcds_error yrmcds_replace (yrmcds *c, const char *key, size_t key_len, const char *data, size_t data_len, uint32_t flags, uint32_t expire, uint64_t cas, int quiet, uint32_t *serial)
 Send Replace/ReplaceQ command. More...
 
yrmcds_error yrmcds_add (yrmcds *c, const char *key, size_t key_len, const char *data, size_t data_len, uint32_t flags, uint32_t expire, uint64_t cas, int quiet, uint32_t *serial)
 Send Add/AddQ command. More...
 
yrmcds_error yrmcds_replace_unlock (yrmcds *c, const char *key, size_t key_len, const char *data, size_t data_len, uint32_t flags, uint32_t expire, int quiet, uint32_t *serial)
 Send RaU/RaUQ command. More...
 
yrmcds_error yrmcds_incr (yrmcds *c, const char *key, size_t key_len, uint64_t value, int quiet, uint32_t *serial)
 Send Increment/IncrementQ command. More...
 
yrmcds_error yrmcds_incr2 (yrmcds *c, const char *key, size_t key_len, uint64_t value, uint64_t initial, uint32_t expire, int quiet, uint32_t *serial)
 Send Increment/IncrementQ command. More...
 
yrmcds_error yrmcds_decr (yrmcds *c, const char *key, size_t key_len, uint64_t value, int quiet, uint32_t *serial)
 Send Decrement/DecrementQ command. More...
 
yrmcds_error yrmcds_decr2 (yrmcds *c, const char *key, size_t key_len, uint64_t value, uint64_t initial, uint32_t expire, int quiet, uint32_t *serial)
 Send Decrement/DecrementQ command. More...
 
yrmcds_error yrmcds_append (yrmcds *c, const char *key, size_t key_len, const char *data, size_t data_len, int quiet, uint32_t *serial)
 Send Append/AppendQ command. More...
 
yrmcds_error yrmcds_prepend (yrmcds *c, const char *key, size_t key_len, const char *data, size_t data_len, int quiet, uint32_t *serial)
 Send Prepend/PrependQ command. More...
 
yrmcds_error yrmcds_remove (yrmcds *c, const char *key, size_t key_len, int quiet, uint32_t *serial)
 Send Delete/DeleteQ command. More...
 
yrmcds_error yrmcds_lock (yrmcds *c, const char *key, size_t key_len, int quiet, uint32_t *serial)
 Send Lock/LockQ command. More...
 
yrmcds_error yrmcds_unlock (yrmcds *c, const char *key, size_t key_len, int quiet, uint32_t *serial)
 Send Unlock/UnlockQ command. More...
 
yrmcds_error yrmcds_unlockall (yrmcds *c, int quiet, uint32_t *serial)
 Send UnlockAll/UnlockAllQ command. More...
 
yrmcds_error yrmcds_flush (yrmcds *c, uint32_t delay, int quiet, uint32_t *serial)
 Send Flush/FlushQ command. More...
 
yrmcds_error yrmcds_stat_general (yrmcds *c, uint32_t *serial)
 Send Stat command to obtain general statistics. More...
 
yrmcds_error yrmcds_stat_settings (yrmcds *c, uint32_t *serial)
 Send Stat command to obtain setting statistics. More...
 
yrmcds_error yrmcds_stat_items (yrmcds *c, uint32_t *serial)
 Send Stat command to obtain item statistics. More...
 
yrmcds_error yrmcds_stat_sizes (yrmcds *c, uint32_t *serial)
 Send Stat command to obtain size statistics. More...
 
yrmcds_error yrmcds_keys (yrmcds *c, const char *prefix, size_t prefix_len, uint32_t *serial)
 Send Keys command to list all keys matching the given prefix. More...
 
yrmcds_error yrmcds_version (yrmcds *c, uint32_t *serial)
 Send Version command. More...
 
yrmcds_error yrmcds_quit (yrmcds *c, int quiet, uint32_t *serial)
 Send Quit/QuitQ command. More...
 

Detailed Description