13 lines
181 B
Python
13 lines
181 B
Python
_store=None
|
|
|
|
def store():
|
|
"""
|
|
Return the redis datastore
|
|
"""
|
|
import redis
|
|
global _store
|
|
|
|
if not _store:
|
|
_store = redis.Redis('localhost', port=6379, db=0)
|
|
|
|
return _store
|