4 #include "redis4qt_global.h" 5 #include "redis_types.h" 32 void setRedisCof(QString strCfg);
40 int key_del(QString key,
bool *error = NULL);
48 QString key_dump(QString key,
bool *error = NULL);
56 bool key_exists(QString key,
bool *error = NULL);
65 bool key_expire(QString key,
int seconds,
bool *error = NULL);
74 bool key_expireat(QString key, qint64 timestamp,
bool *error = NULL);
82 QStringList keys(QString pattern,
bool *error = NULL);
90 int key_pttl(QString key,
bool *error = NULL);
98 int key_ttl(QString key,
bool *error = NULL);
107 bool key_rename(QString key, QString newkey,
bool *error = NULL);
115 QString key_type(QString key,
bool *error = NULL);
125 bool string_set(QString key, QString value,
bool *error = NULL);
133 QString string_get(QString key,
bool *error = NULL);
143 QString string_getrange(QString key,
int start,
int stop,
bool *error = NULL);
151 QStringList string_mget(QStringList keys,
bool *error = NULL);
159 bool string_mset(QMap<QString, QVariant> map,
bool *error = NULL);
167 int string_incr(QString key,
bool *error = NULL);
176 int string_incrby(QString key,
int interval,
bool *error = NULL);
184 int string_decr(QString key,
bool *error = NULL);
193 int string_decrby(QString key,
int interval,
bool *error = NULL);
202 int string_append(QString key, QString value,
bool *error = NULL);
212 QStringList list_blpop(QString key,
int timeout,
bool *error = NULL);
221 QStringList list_brpop(QString key,
int timeout,
bool *error = NULL);
231 QStringList list_brpoplpush(QString source, QString destination,
int timeout,
bool *error = NULL);
240 QString list_index(QString key,
int index,
bool *error = NULL);
252 int list_insert(QString key, QString position, QString pivot, QString value,
bool *error = NULL);
260 int list_len(QString key,
bool *error = NULL);
268 QString list_lpop(QString key,
bool *error = NULL);
277 int list_lpush(QString key, QString value,
bool *error = NULL);
286 int list_lpush(QString key, QStringList values,
bool *error = NULL);
295 int list_lpushx(QString key, QStringList values,
bool *error = NULL);
306 QStringList list_range(QString key,
int start,
int end,
bool *error = NULL);
320 int list_rem(QString key,
int count, QString value,
bool *error = NULL);
331 int list_set(QString key,
int index, QString value,
bool *error = NULL);
343 bool list_trim(QString key,
int start,
int stop,
bool *error = NULL);
351 QString list_rpop(QString key,
bool *error = NULL);
360 QString list_rpoplpush(QString source, QString destination,
bool *error = NULL);
369 int list_rpush(QString key, QString value,
bool *error = NULL);
378 int list_rpush(QString key, QStringList values,
bool *error = NULL);
387 int list_rpushx(QString key, QStringList values,
bool *error = NULL);
399 int set_add(QString key, QString member,
bool *error = NULL);
410 int set_add(QString key, QStringList members,
bool *error = NULL);
418 int set_card(QString key,
bool *error = NULL);
426 QStringList set_diff(QStringList keys,
bool *error = NULL);
435 int set_diffstore(QString destination, QStringList keys,
bool *error = NULL);
443 QStringList set_inter(QStringList keys,
bool *error = NULL);
452 int set_interstore(QString destination, QStringList keys,
bool *error = NULL);
461 bool set_ismember(QString key, QString member,
bool *error = NULL);
469 QStringList set_members(QString key,
bool *error = NULL);
483 bool set_move(QString source, QString destination, QString member,
bool *error = NULL);
491 QString set_pop(QString key,
bool *error = NULL);
500 QStringList set_randmember(QString key,
bool *error = NULL);
512 QStringList set_randmember(QString key,
int count,
bool *error = NULL);
521 int set_rem(QString key, QString member,
bool *error = NULL);
530 int set_rem(QString key, QStringList members,
bool *error = NULL);
538 QStringList set_union(QStringList keys,
bool *error = NULL);
547 int set_unionstore(QString destination, QStringList keys,
bool *error = NULL);
557 int hash_del(QString key, QString field,
bool *error = NULL);
566 int hash_del(QString key, QStringList fields,
bool *error = NULL);
575 bool hash_exists(QString key, QString field,
bool *error = NULL);
584 QString hash_get(QString key, QString field,
bool *error = NULL);
592 QVariantMap hash_getall(QString key,
bool *error = NULL);
607 int hash_incrby(QString key, QString field,
int increment,
bool *error = NULL);
617 float hash_incrbyfloat(QString key, QString field,
float increment,
bool *error = NULL);
625 QStringList hash_keys(QString key,
bool *error = NULL);
633 int hash_len(QString key,
bool *error = NULL);
642 QStringList hash_mget(QString key, QStringList fields,
bool *error = NULL);
651 bool hash_mset(QString key, QMap<QString,QVariant> map,
bool *error = NULL);
661 bool hash_set(QString key, QString field, QString value,
bool *error = NULL);
674 bool hash_setnx(QString key, QString field, QString value,
bool *error = NULL);
682 QStringList hash_values(QString key,
bool *error = NULL);
690 void publish(QString channel, QString message,
bool *error = NULL);
697 void subscribe(QString channel,
bool *error = NULL);
704 void unsubscribe(QString channel,
bool *error = NULL);
712 void psubscribe(QString channel,
bool *error = NULL);
719 void punsubscribe(QString channel,
bool *error = NULL);
729 bool validKey(QString &key, QString funcName,
bool *error);
730 bool validKeys(QStringList &key, QString funcName,
bool *error);
731 void setLastError(
int error);
732 QVariant dealwithCmd(FuncType type, QVariantList &data,
bool *error);
733 QVariant excuteCmd(FuncType type,
RedisCore* redis, QVariantList &data);
738 int m_redisCmdTimeout;
739 QMap<void *, ThreadRedis> m_redis;
740 QSettings *m_Settings;
Definition: redis4qt.h:22
Definition: redis_types.h:13
Definition: lht_redis.h:17
Definition: redis_core.h:13