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

Type MemcacheContainer

object --+
         |
        MemcacheContainer


Method Summary
  __init__(self, servers, cache_key)
Container based on the memcached tool for highly efficient and distributed memory cache.
  __contains__(self, key)
  __delitem__(self, key)
  __getitem__(self, key)
  __iter__(self)
  __setitem__(self, key, value)
  iterkeys(self)
  shutdown(self)
Closes down all connections to memcached nodes.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

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

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.

The ``servers`` arguments is a list of bye string (not unicode) respecting the format of memcached connection strings.

The ``cache_key`` is a unique value that will be used to track the indexes within memcache. If not provided one random string will created.

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.
Overrides:
__builtin__.object.__init__

shutdown(self)

Closes down all connections to memcached nodes.

Generated by Epydoc 2.1 on Thu Jul 19 15:32:16 2007 http://epydoc.sf.net