mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
add lpop and rpush to notify redis
This commit is contained in:
@@ -156,6 +156,14 @@ class RedisClient:
|
|||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def rpush(self, key, value):
|
||||||
|
if self.active:
|
||||||
|
self.redis_store.rpush(key, value)
|
||||||
|
|
||||||
|
def lpop(self, key, value):
|
||||||
|
if self.active:
|
||||||
|
self.redis_store.lpop(key, value)
|
||||||
|
|
||||||
def delete(self, *keys, raise_exception=False):
|
def delete(self, *keys, raise_exception=False):
|
||||||
keys = [prepare_value(k) for k in keys]
|
keys = [prepare_value(k) for k in keys]
|
||||||
if self.active:
|
if self.active:
|
||||||
|
|||||||
Reference in New Issue
Block a user