Permalink
Browse files

merge with 8427fba

  • Loading branch information...
1 parent 48d2999 commit b4b2c3ae66b391114754040ecba04b1df50d13c9 @iuridiniz iuridiniz committed Jun 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 beaker_extensions/redis_.py
View
3 beaker_extensions/redis_.py
@@ -14,10 +14,11 @@
class RedisManager(NoSqlManager):
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params):
+ self.db = params.pop('db', None)
NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def open_connection(self, host, port, **params):
- self.db_conn = Redis(host=host, port=int(port), **params)
+ self.db_conn = Redis(host=host, port=int(port), db=self.db, **params)
def __contains__(self, key):
return self.db_conn.exists(self._format_key(key))

0 comments on commit b4b2c3a

Please sign in to comment.