mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Add sadd and smembers redis trampolines
This commit is contained in:
parent
762c7650a7
commit
a0d2f3725f
1 changed files with 8 additions and 0 deletions
|
@ -55,6 +55,12 @@ def redis_hincrby(t,k,v):
|
|||
def redis_incrby(k,v):
|
||||
return redisdb.incrby(k,v)
|
||||
|
||||
def redis_sadd(k,v):
|
||||
return redisdb.sadd(k,v)
|
||||
|
||||
def redis_smembers(k):
|
||||
return redisdb.smembers(k)
|
||||
|
||||
def redis_delete(k):
|
||||
return redisdb.delete(k)
|
||||
|
||||
|
@ -73,6 +79,8 @@ def CompatibilityCheck():
|
|||
if not p.hset: raise RuntimeError('hset call not found')
|
||||
if not p.hincrby: raise RuntimeError('hincrby call not found')
|
||||
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.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