Example #1
0
def populate_all_chars():
    redis = Redis(connection_pool=redis_pool)
    pipe = redis.pipeline()
    pipe.delete('all-chars')
    pipe.sadd('all-chars', *CHARACTER_DETAILS.keys())
    pipe.execute()
    del pipe
    del redis
Example #2
0
def populate_all_chars():
    redis = Redis(unix_socket_path='/tmp/redis.sock')
    pipe = redis.pipeline()
    pipe.delete('all-chars')
    pipe.sadd('all-chars', *CHARACTER_DETAILS.keys())
    pipe.execute()
    del pipe
    del redis
Example #3
0
def populate_all_chars():
    redis = Redis(connection_pool=redis_pool)
    pipe = redis.pipeline()
    pipe.delete('all-chars')
    pipe.sadd('all-chars', *CHARACTER_DETAILS.keys())
    pipe.execute()
    del pipe
    del redis