mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
redis: add a trampoline for sismember
This commit is contained in:
parent
5774f1ca90
commit
eac4dad075
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,9 @@ def redis_sadd(k,v):
|
|||
def redis_smembers(k):
|
||||
return redisdb.smembers(k)
|
||||
|
||||
def redis_sismember(k,v):
|
||||
return redisdb.sismember(k,v)
|
||||
|
||||
def redis_rpush(k,v):
|
||||
return redisdb.rpush(k,v)
|
||||
|
||||
|
@ -106,6 +109,7 @@ 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.sismember: raise RuntimeError('sismember 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')
|
||||
|
|
Loading…
Reference in a new issue