Package wtf :: Package ext :: Module sharedance :: Class Sharedance
[hide private]
[frames] | no frames]

Class Sharedance

source code

object --+
         |
        Sharedance

Sharedance API
Instance Methods [hide private]
 
__init__(self, conns)
Initialization
source code
 
store(self, key, data)
Store an item
source code
 
fetch(self, key)
Fetch an item
source code
 
delete(self, key)
Delete a key
source code
 
check(self, key=None, content=None, fetch=None)
Check the servers for functionality
source code
 
_get_conn(self, key)
Determine connector based on the weighted list
source code

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

Instance Variables [hide private]
tuple _weighted
Weighted list of connectors
tuple conns
List of connectors
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, conns)
(Constructor)

source code 
Initialization
Parameters:
  • conns (iterable) - List of sharedance connectors
Overrides: object.__init__