Package amplee :: Package indexer :: Class MemcacheContainer
[hide private]
[frames] | no frames]

Class MemcacheContainer

source code

object --+
         |
        MemcacheContainer

Instance Methods [hide private]
 
__init__(self, servers, cache_key=None)
Container based on the memcached tool for highly efficient and distributed memory cache.
source code
 
shutdown(self)
Closes down all connections to memcached nodes.
source code
 
__contains__(self, key) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
__delitem__(self, key) source code
 
__iter__(self) source code
 
iterkeys(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, servers, cache_key=None)
(Constructor)

source code 

Container based on the memcached tool for highly efficient and distributed memory cache.

To use this container you must have either cmemcache or python-memcache installed.

Basically only one key will be created within memcache and a list will be associated as a value.

Indexes will be stored in that list.
Parameters:
  • servers - list of memcached servers to use.
  • cache_key (string) - unique value that will be used to track the indexes within memcache. If not provided one random string will created.
Overrides: object.__init__