You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.py 181 B

14 years ago
12345678910111213
  1. _store=None
  2. def store():
  3. """
  4. Return the redis datastore
  5. """
  6. import redis
  7. global _store
  8. if not _store:
  9. _store = redis.Redis('localhost', port=6379, db=0)
  10. return _store