Package redis :: Module utils
[frames] | no frames]

Source Code for Module redis.utils

 1  from redis.client import Redis 
 2   
3 -def from_url(url, db=None, **kwargs):
4 """Returns an active Redis client generated from the given database URL. 5 6 Will attempt to extract the database id from the path url fragment, if 7 none is provided. 8 """ 9 return Redis.from_url(url, db, **kwargs)
10