Example #1
0
def message_get(char_id):
    key = 'noti:{0}'.format(char_id)
    msgs = redis_client.lrange(key, 0, -1)
    redis_client.delete(key)
    return msgs
Example #2
0
 def get(cls):
     return redis_client.lrange(cls.REDIS_KEY, 0, -1)
Example #3
0
def message_get(char_id):
    key = 'noti:{0}'.format(char_id)
    msgs = redis_client.lrange(key, 0, -1)
    redis_client.delete(key)
    return msgs
Example #4
0
def message_get(char_id):
    key = keygen(char_id)
    msgs = redis_client.lrange(key, 0, -1)
    redis_client.delete(key)
    return msgs
Example #5
0
def message_get(char_id):
    key = keygen(char_id)
    msgs = redis_client.lrange(key, 0, -1)
    redis_client.delete(key)
    return msgs
Example #6
0
 def get(cls):
     return redis_client.lrange(cls.REDIS_KEY, 0, -1)