xRedis API  1.1
The C++ Client API for Redis server
Public Member Functions | List of all members
xRedisClient Class Reference

Public Member Functions

bool Init (unsigned int maxtype)
 
void release ()
 
void KeepAlive ()
 
RedisPoolGetRedisPool ()
 
bool ConnectRedisCache (const RedisNode *redisnodelist, unsigned int hashbase, unsigned int cachetype)
 
bool auth (const RedisDBIdx &dbi, const string &pass)
 
bool append (const RedisDBIdx &dbi, const string &key, const string &value)
 
bool bitcount (const RedisDBIdx &dbi, const string &key, int &count, const int start=0, const int end=0)
 
bool bitop (const RedisDBIdx &dbi, const BITOP operation, const string &destkey, const KEYS &keys, int &lenght)
 
bool bitpos (const RedisDBIdx &dbi, const string &key, const int bit, int64_t &pos, const int start=0, const int end=0)
 
bool decr (const RedisDBIdx &dbi, const string &key, int64_t &result)
 
bool decrby (const RedisDBIdx &dbi, const string &key, const int by, int64_t &result)
 
bool get (const RedisDBIdx &dbi, const string &key, string &value)
 
bool getbit (const RedisDBIdx &dbi, const string &key, const int &offset, int &bit)
 
bool getrange (const RedisDBIdx &dbi, const string &key, const int start, const int end, string &out)
 
bool getset (const RedisDBIdx &dbi, const string &key, const string &newValue, string &oldValue)
 
bool incr (const RedisDBIdx &dbi, const string &key, int64_t &result)
 
bool incrby (const RedisDBIdx &dbi, const string &key, const int by, int64_t &result)
 
bool mget (const DBIArray &dbi, const KEYS &keys, ReplyData &vDdata)
 
bool mset (const DBIArray &dbi, const VDATA &data)
 
bool psetex (const RedisDBIdx &dbi, const string &key, const int milliseconds, const string &value)
 
bool set (const RedisDBIdx &dbi, const string &key, const string &value)
 
bool set (const RedisDBIdx &dbi, const string &key, const char *value, int len, const int second=0)
 
bool setbit (const RedisDBIdx &dbi, const string &key, const int offset, const int64_t newbitValue, int64_t oldbitValue)
 
bool setex (const RedisDBIdx &dbi, const string &key, const int seconds, const string &value)
 
bool setnx (const RedisDBIdx &dbi, const string &key, const string &value)
 
bool setrange (const RedisDBIdx &dbi, const string &key, const int offset, const string &value, int &length)
 
bool strlen (const RedisDBIdx &dbi, const string &key, int &length)
 
bool del (const RedisDBIdx &dbi, const string &key)
 
bool del (const DBIArray &dbi, const KEYS &vkey, int64_t &count)
 
bool exists (const RedisDBIdx &dbi, const string &key)
 
bool expire (const RedisDBIdx &dbi, const string &key, const unsigned int second)
 
bool expireat (const RedisDBIdx &dbi, const string &key, const unsigned int timestamp)
 
bool persist (const RedisDBIdx &dbi, const string &key)
 
bool pexpire (const RedisDBIdx &dbi, const string &key, const unsigned int milliseconds)
 
bool pexpireat (const RedisDBIdx &dbi, const string &key, const unsigned int millisecondstimestamp)
 
bool pttl (const RedisDBIdx &dbi, const string &key, int64_t &milliseconds)
 
bool randomkey (const RedisDBIdx &dbi, KEY &key)
 
bool sort (const RedisDBIdx &dbi, ArrayReply &array, const string &key, const char *by=NULL, LIMIT *limit=NULL, bool alpha=false, const FILEDS *get=NULL, const SORTODER order=ASC, const char *destination=NULL)
 
bool ttl (const RedisDBIdx &dbi, const string &key, int64_t &seconds)
 
bool hdel (const RedisDBIdx &dbi, const string &key, const string &filed, int64_t &num)
 
bool hdel (const RedisDBIdx &dbi, const string &key, const KEYS &vfiled, int64_t &num)
 
bool hexist (const RedisDBIdx &dbi, const string &key, const string &filed)
 
bool hget (const RedisDBIdx &dbi, const string &key, const string &filed, string &value)
 
bool hgetall (const RedisDBIdx &dbi, const string &key, ArrayReply &array)
 
bool hincrby (const RedisDBIdx &dbi, const string &key, const string &filed, const int64_t increment, int64_t &value)
 
bool hincrbyfloat (const RedisDBIdx &dbi, const string &key, const string &filed, const float increment, float &value)
 
bool hkeys (const RedisDBIdx &dbi, const string &key, KEYS &keys)
 
bool hlen (const RedisDBIdx &dbi, const string &key, int64_t &count)
 
bool hmget (const RedisDBIdx &dbi, const string &key, const KEYS &filed, ArrayReply &array)
 
bool hmset (const RedisDBIdx &dbi, const string &key, const VDATA &vData)
 
bool hset (const RedisDBIdx &dbi, const string &key, const string &filed, const string &value, int64_t &retval)
 
bool hsetnx (const RedisDBIdx &dbi, const string &key, const string &filed, const string &value)
 
bool hvals (const RedisDBIdx &dbi, const string &key, VALUES &values)
 
bool lindex (const RedisDBIdx &dbi, const string &key, const int64_t index, VALUE &value)
 
bool linsert (const RedisDBIdx &dbi, const string &key, const LMODEL mod, const string &pivot, const string &value, int64_t &retval)
 
bool llen (const RedisDBIdx &dbi, const string &key, int64_t &len)
 
bool lpop (const RedisDBIdx &dbi, const string &key, string &value)
 
bool lpush (const RedisDBIdx &dbi, const string &key, const VALUES &vValue, int64_t &length)
 
bool lpushx (const RedisDBIdx &dbi, const string &key, const string &value, int64_t &length)
 
bool lrange (const RedisDBIdx &dbi, const string &key, const int64_t start, const int64_t end, ArrayReply &array)
 
bool lrem (const RedisDBIdx &dbi, const string &key, const int count, const string &value, int64_t num)
 
bool lset (const RedisDBIdx &dbi, const string &key, const int index, const string &value)
 
bool ltrim (const RedisDBIdx &dbi, const string &key, const int start, const int end)
 
bool rpop (const RedisDBIdx &dbi, const string &key, string &value)
 
bool rpoplpush (const RedisDBIdx &dbi, const string &key_src, const string &key_dest, string &value)
 
bool rpush (const RedisDBIdx &dbi, const string &key, const VALUES &vValue, int64_t &length)
 
bool rpushx (const RedisDBIdx &dbi, const string &key, const string &value, int64_t &length)
 
bool sadd (const RedisDBIdx &dbi, const KEY &key, const VALUES &vValue, int64_t &count)
 
bool scard (const RedisDBIdx &dbi, const KEY &key, int64_t &count)
 
bool sdiff (const DBIArray &dbi, const KEYS &vKkey, VALUES &vValue)
 
bool sdiffstore (const RedisDBIdx &dbi, const KEY &destinationkey, const DBIArray &vdbi, const KEYS &vkey, int64_t &count)
 
bool sinter (const DBIArray &dbi, const KEYS &vkey, VALUES &vValue)
 
bool sinterstore (const RedisDBIdx &dbi, const KEY &destinationkey, const DBIArray &vdbi, const KEYS &vkey, int64_t &count)
 
bool sismember (const RedisDBIdx &dbi, const KEY &key, const VALUE &member)
 
bool smembers (const RedisDBIdx &dbi, const KEY &key, VALUES &vValue)
 
bool smove (const RedisDBIdx &dbi, const KEY &srckey, const KEY &deskey, const VALUE &member)
 
bool spop (const RedisDBIdx &dbi, const KEY &key, VALUE &member)
 
bool srandmember (const RedisDBIdx &dbi, const KEY &key, VALUES &vmember, int num=0)
 
bool srem (const RedisDBIdx &dbi, const KEY &key, const VALUES &vmembers, int64_t &count)
 
bool sunion (const DBIArray &dbi, const KEYS &vkey, VALUES &vValue)
 
bool sunionstore (const RedisDBIdx &dbi, const KEY &deskey, const DBIArray &vdbi, const KEYS &vkey, int64_t &count)
 
bool zadd (const RedisDBIdx &dbi, const KEY &deskey, const VALUES &vValues, int64_t &count)
 
bool zscrad (const RedisDBIdx &dbi, const string &key, int64_t &num)
 
bool zincrby (const RedisDBIdx &dbi, const string &key, const double &increment, const string &member, string &value)
 
bool zrange (const RedisDBIdx &dbi, const string &key, int start, int end, VALUES &vValues, bool withscore=false)
 
bool zrank (const RedisDBIdx &dbi, const string &key, const string &member, int64_t &rank)
 
bool zrem (const RedisDBIdx &dbi, const KEY &key, const VALUES &vmembers, int64_t &num)
 
bool zremrangebyrank (const RedisDBIdx &dbi, const string &key, const int start, const int stop, int64_t &num)
 
bool zrevrange (const RedisDBIdx &dbi, const string &key, int start, int end, VALUES &vValues, bool withscore=false)
 
bool zrevrank (const RedisDBIdx &dbi, const string &key, const string &member, int64_t &rank)
 
bool zscore (const RedisDBIdx &dbi, const string &key, const string &member, string &score)
 
bool command_bool (const RedisDBIdx &dbi, const char *cmd,...)
 
bool command_status (const RedisDBIdx &dbi, const char *cmd,...)
 
bool command_integer (const RedisDBIdx &dbi, int64_t &intval, const char *cmd,...)
 
bool command_string (const RedisDBIdx &dbi, string &data, const char *cmd,...)
 
bool command_list (const RedisDBIdx &dbi, VALUES &vValue, const char *cmd,...)
 
bool command_array (const RedisDBIdx &dbi, ArrayReply &array, const char *cmd,...)
 

Detailed Description

Examples:
demo.cpp, demo_cluster.cpp, and demo_multi_cluster.cpp.

The documentation for this class was generated from the following files:

Generated on Fri Oct 23 2015 13:13:57 for xRedis API version 1.1.