mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
redis: add llen/lset trampolines
This commit is contained in:
parent
b0684fb81e
commit
e8954211a3
1 changed files with 8 additions and 0 deletions
|
@ -73,9 +73,15 @@ def redis_rpush(k,v):
|
||||||
def redis_lpop(k):
|
def redis_lpop(k):
|
||||||
return redisdb.lpop(k)
|
return redisdb.lpop(k)
|
||||||
|
|
||||||
|
def redis_llen(k):
|
||||||
|
return redisdb.llen(k)
|
||||||
|
|
||||||
def redis_lindex(k,n):
|
def redis_lindex(k,n):
|
||||||
return redisdb.lindex(k,n)
|
return redisdb.lindex(k,n)
|
||||||
|
|
||||||
|
def redis_lset(k,i,v):
|
||||||
|
return redisdb.lset(k,i,v)
|
||||||
|
|
||||||
def redis_zincrby(t,k,s):
|
def redis_zincrby(t,k,s):
|
||||||
return redisdb.zincrby(t,k,s)
|
return redisdb.zincrby(t,k,s)
|
||||||
|
|
||||||
|
@ -112,7 +118,9 @@ def CompatibilityCheck():
|
||||||
if not p.sismember: raise RuntimeError('sismember call not found')
|
if not p.sismember: raise RuntimeError('sismember call not found')
|
||||||
if not p.rpush: raise RuntimeError('rpush call not found')
|
if not p.rpush: raise RuntimeError('rpush call not found')
|
||||||
if not p.lpop: raise RuntimeError('lpop call not found')
|
if not p.lpop: raise RuntimeError('lpop call not found')
|
||||||
|
if not p.llen: raise RuntimeError('llen call not found')
|
||||||
if not p.lindex: raise RuntimeError('lindex call not found')
|
if not p.lindex: raise RuntimeError('lindex call not found')
|
||||||
|
if not p.lset: raise RuntimeError('lset call not found')
|
||||||
if not p.zincrby: raise RuntimeError('zincrby call not found')
|
if not p.zincrby: raise RuntimeError('zincrby call not found')
|
||||||
if not p.zscore: raise RuntimeError('zscore call not found')
|
if not p.zscore: raise RuntimeError('zscore call not found')
|
||||||
if not p.zrangebylex: raise RuntimeError('zrangebylex call not found')
|
if not p.zrangebylex: raise RuntimeError('zrangebylex call not found')
|
||||||
|
|
Loading…
Reference in a new issue