mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Add rpush/lpop/lindex trampolines
This commit is contained in:
parent
68ca830b05
commit
206dcbebec
1 changed files with 12 additions and 0 deletions
|
@ -64,6 +64,15 @@ def redis_sadd(k,v):
|
|||
def redis_smembers(k):
|
||||
return redisdb.smembers(k)
|
||||
|
||||
def redis_rpush(k,v):
|
||||
return redisdb.rpush(k,v)
|
||||
|
||||
def redis_lpop(k):
|
||||
return redisdb.lpop(k)
|
||||
|
||||
def redis_lindex(k,n):
|
||||
return redisdb.lindex(k,n)
|
||||
|
||||
def redis_delete(k):
|
||||
return redisdb.delete(k)
|
||||
|
||||
|
@ -85,6 +94,9 @@ def CompatibilityCheck():
|
|||
if not p.incrby: raise RuntimeError('incrby call not found')
|
||||
if not p.sadd: raise RuntimeError('sadd call not found')
|
||||
if not p.smembers: raise RuntimeError('smembers 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.lindex: raise RuntimeError('lindex call not found')
|
||||
if not p.execute: raise RuntimeError('execute call not found')
|
||||
if not p.delete: raise RuntimeError('delete call not found')
|
||||
except Exception,e:
|
||||
|
|
Loading…
Reference in a new issue