def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, keyspace=None, column_family=None, **params): NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params) connection_key = "-".join( ["%r" % url, "%r" % keyspace, "%r" % column_family] + ["%s:%r" % (k, params[k]) for k in params] ) if connection_key in self.connection_pools: self.db_conn = self.connection_pools[connection_key] else: self.db_conn = _CassandraBackedDict(namespace, url, keyspace, column_family, **params) self.connection_pools[connection_key] = self.db_conn
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.connection_pool = params.pop('connection_pool', None) NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.database = params['database'] NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.db = params.pop('db', None) self.dbpass = params.pop('password', None) NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.db = params.pop('db', None) self.connection_pools = {} NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.db = params.pop('db', None) self.dbpass = params.pop('password', None) self.connection_pool = params.get('redis_connection_pool', None) self.expires = params.get('expires', params.get('expiretime', None)) NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.prefix = params.pop('prefix', "") # full_prefix is used as a key itself for storing the set of all keys self.full_prefix = "beaker:{0}:{1}".format(self.prefix, namespace) self.connection_pool = params.pop('connection_pool', None) NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, keyspace=None, column_family=None, **params): if not keyspace: raise MissingCacheParameter("keyspace is required") self.keyspace = keyspace self.column_family = column_family or 'beaker' NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.connection_pool = params.pop('connection_pool', None) self.password = params.pop('redis_password', None) NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, userid=None, **params): self.connection_pool = params.pop('connection_pool', None) NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params) self.userid = userid or self.get_userid_from_namespace() or 'ANON'
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.expiretime = params.pop('expiretime', None) NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)
def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params): self.database = params["database"] NoSqlManager.__init__(self, namespace, url=url, data_dir=data_dir, lock_dir=lock_dir, **params)