Package memtools :: Module protocols :: Class MemoryPool
[hide private]

Class MemoryPool

source code


A MemoryPool object provides an extended way of using Memory gateways. It holds more than one connection open, so it should be theoretically faster than ad-hoc connections. However, it does not necessarily imply that the objects in the pool are connected to different servers.

It must behave like a Memory gateway too, masking the lock/hold/return operations inside the MemoryPool, providing a complete replacement for normal Memory objects.

Instance Methods [hide private]
 
count(self) source code
 
grow(self, number=1) source code
 
shrink(self, number=1) source code

Inherited from Memory: __call__, __delitem__, __getitem__, __setitem__, get, set

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__