Package wtf :: Package ext :: Module memcache :: Class MemcacheConnection
[hide private]
[frames] | no frames]

Class MemcacheConnection

source code

object --+
         |
        MemcacheConnection

Memcache connection representation
Instance Methods [hide private]
 
__init__(self, pool, spec, timeout=None)
Initialization
source code
 
__del__(self)
Destruction
source code
any
__getattr__(self, name)
Delegate unknown requests to the underlying connection
source code
 
close(self)
Close connection
source code
 
destroy(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __implements__ = [<class 'wtf.util.PooledInterface'>]
Instance Variables [hide private]
stream.GenericStream _conn = None
Underlying connection stream
MemcacheConnectionPool pool = None
Weak reference to the pool
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pool, spec, timeout=None)
(Constructor)

source code 
Initialization
Parameters:
  • pool (MemcacheConnectionPool) - Pool reference
  • spec (tuple) - Connection spec
  • timeout (float) - Communication timeout
Overrides: object.__init__

__getattr__(self, name)
(Qualification operator)

source code 
Delegate unknown requests to the underlying connection
Parameters:
  • name (str) - The name to lookup
Returns: any
The looked up name
Raises:
  • AttributeError - The symbol could be resolved

destroy(self)

source code