Esempio n. 1
0
def get_info():
    """Returns a dictionary containing information about the Redis server"""
    cl = get_client()
    return cl.info()
Esempio n. 2
0
def cleandb():
    from ooredis import get_client
    cl = get_client()
    cl.flushdb()
Esempio n. 3
0
def lastsave():
    from ooredis import get_client
    cl = get_client()
    return cl.lastsave()
Esempio n. 4
0
def get_all_keys():
    from ooredis import get_client
    cl = get_client()
    return cl.keys()
Esempio n. 5
0
def safe_exit():
    from ooredis import get_client
    cl = get_client()
    cl.save()
    cl.shutdown()
Esempio n. 6
0
def shutdown():
    from ooredis import get_client
    cl = get_client()
    cl.shutdown()
Esempio n. 7
0
def bgsave():
    cl = get_client()
    cl.bgsave()
Esempio n. 8
0
def save_db():
    cl = get_client()
    cl.save()
Esempio n. 9
0
def get_dbsize():
    """Returns the number of keys in the current database"""
    cl = get_client()
    return cl.dbsize()