Exemplo n.º 1
0
 def __del__(self):
     # delete object references manually
     if self.connectionWrapper is not None:
         object.__delattr__(self, 'connectionWrapper')
     Decorator.__del__(self)
Exemplo n.º 2
0
 def __init__(self, obj, expiration=3600, prefix="auth_"):
     Decorator.__init__(self, obj)
     object.__setattr__(self, "connectionWrapper", None)
     object.__setattr__(self, "prefix", prefix)
     object.__setattr__(self, "expiration", expiration)
Exemplo n.º 3
0
 def __del__(self):
     # delete object references manually
     object.__delattr__(self, 'redis')
     Decorator.__del__(self)
Exemplo n.º 4
0
 def __init__(self, obj, expiration=86400, prefix='active_record_'):
     Decorator.__init__(self, obj)
     object.__setattr__(self, "redis", Redis.ConnectionPool().get())
     object.__setattr__(self, "expiration", expiration)
     prefix += "%s" % obj._table
     object.__setattr__(self, "prefix", prefix)
Exemplo n.º 5
0
 def __del__(self):
     # delete object references manually
     object.__delattr__(self, "redis")
     Decorator.__del__(self)
Exemplo n.º 6
0
 def __init__(self, obj, expiration=86400, prefix="active_record_"):
     Decorator.__init__(self, obj)
     object.__setattr__(self, "redis", Redis.ConnectionPool().get())
     object.__setattr__(self, "expiration", expiration)
     prefix += "%s" % obj._table
     object.__setattr__(self, "prefix", prefix)
Exemplo n.º 7
0
    def __init__(self, obj, expiration=86400, prefix='storage_meta_'):
        Decorator.__init__(self, obj)
        object.__setattr__(self, "redis", Redis.ConnectionPool().get())
	object.__setattr__(self, "expiration", expiration)
        object.__setattr__(self, "prefix", prefix)