mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
redis: add trampolines for a few z* functions
This commit is contained in:
parent
4b6f08d2a1
commit
c4fbd04532
1 changed files with 12 additions and 0 deletions
|
@ -76,6 +76,15 @@ def redis_lindex(k,n):
|
||||||
def redis_zincrby(t,k,s):
|
def redis_zincrby(t,k,s):
|
||||||
return redisdb.zincrby(t,k,s)
|
return redisdb.zincrby(t,k,s)
|
||||||
|
|
||||||
|
def redis_zscore(t,k):
|
||||||
|
return redisdb.zscore(t,k)
|
||||||
|
|
||||||
|
def redis_zrangebylex(t,x0,x1):
|
||||||
|
return redisdb.zrangebylex(t,x0,x1)
|
||||||
|
|
||||||
|
def redis_keys(s):
|
||||||
|
return redisdb.keys(s)
|
||||||
|
|
||||||
def redis_delete(k):
|
def redis_delete(k):
|
||||||
return redisdb.delete(k)
|
return redisdb.delete(k)
|
||||||
|
|
||||||
|
@ -101,6 +110,9 @@ def CompatibilityCheck():
|
||||||
if not p.lpop: raise RuntimeError('lpop call not found')
|
if not p.lpop: raise RuntimeError('lpop 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.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.zrangebylex: raise RuntimeError('zrangebylex call not found')
|
||||||
|
if not p.keys: raise RuntimeError('keys call not found')
|
||||||
if not p.execute: raise RuntimeError('execute call not found')
|
if not p.execute: raise RuntimeError('execute call not found')
|
||||||
if not p.delete: raise RuntimeError('delete call not found')
|
if not p.delete: raise RuntimeError('delete call not found')
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
|
|
Loading…
Reference in a new issue