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
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