Skip to content
Radagaisus edited this page Sep 6, 2012 · 4 revisions

Key Names

  • @num - key: prefix:model:id points
  • @str - key: prefix:model:id name
  • @list - key: prefix:model:id:listname
  • @set - key: prefix:model:id:setname
  • @zset - key: prefix:model:id:zsetname
  • @hash - key: prefix:model:id:hashname

Supported Commands

str: [
	'hdel',
	'hexists',
	'hget',
	'hsetnx',
	'hset'
]

num: [
	'hdel',
	'hexists',
	'hget',
	'hsetnx',
	'hset',
	'hincrby',
	'hincrbyfloat'
]

list: [
	'blpop',
	'brpop',
	'brpoplpush',
	'lindex',
	'linsert',
	'llen',
	'lpop',
	'lpush',
	'lpushx',
	'lrange',
	'lrem',
	'lset',
	'ltrim',
	'rpop',
	'rpoplpush',
	'rpush',
	'rpushx'
]

set: [
	'sadd',
	'scard',
	'sdiff',
	'sdiffstore',
	'sinter',
	'sinterstore',
	'sismember',
	'smembers',
	'smove',
	'spop',
	'srandmember',
	'srem',
	'sunion',
	'sunionstore'
]

zset: [
	'zadd',
	'zcard',
	'zcount',
	'zincrby',
	'zinterstore',
	'zrange',
	'zrangebyscore',
	'zrank',
	'zrem',
	'zremrangebyrank',
	'zremrangebyscore',
	'zrevrange',
	'zrevrangebyscore',
	'zrevrank',
	'zscore',
	'zunionstore'
]

hash: [
	'hdel',
	'hexists',
	'hget',
	'hgetall',
	'hincrby',
	'hincrbyfloat',
	'hkeys',
	'hlen',
	'hmget',
	'hmset',
	'hset',
	'hsetnx',
	'hvals'
]
Clone this wiki locally