Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

14 wiersze
181 B

  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