comparison gpp/core/services.py @ 519:f72ace06658a

For #194, rework the who's online and max users functions.
author Brian Neal <bgneal@gmail.com>
date Sat, 17 Dec 2011 19:29:24 +0000
parents 6f5fff924877
children
comparison
equal deleted inserted replaced
518:5171a5e9353b 519:f72ace06658a
16 def get_redis_connection(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB): 16 def get_redis_connection(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB):
17 """ 17 """
18 Create and return a Redis connection using the supplied parameters. 18 Create and return a Redis connection using the supplied parameters.
19 19
20 """ 20 """
21 return redis.Redis(host=host, port=port, db=db) 21 return redis.StrictRedis(host=host, port=port, db=db)