Is there a standard Python caching class for third-party developers?

I am working on a client class that should load data from a network database. It has been suggested that adding a standard caching service to a client can improve its performance.

I would really like not to create my own caching class - it is well known that they provide common points of failure. It would be much better to use a class that someone else developed, rather than spend a huge amount of their own time debugging a makeshift caching system.

For Java developers, this is: http://ehcache.sourceforge.net/

This is a general-purpose high-performance caching class that can support all types of storage. He got options for expiration and other garbage collection methods. It looks very good. Unfortunately, I cannot find anything good for Python.

So can anyone suggest a cache class that is ready for me to use. My wish list:

  • The ability to limit the number of objects in the cache.
  • The ability to limit the maximum age of objects in the cache.
  • Validity of the LRU
  • Ability to select several forms of storage (for example, memory, disk)
  • Well-maintained, well-groomed, used by at least one well-known application.
  • Good performance.

So, any suggestions?

: . , , . Memcached , Windows.

+5
1

memcached cmemcache, . , . memcached . , .

UPDATE

.

memcached localhost. .

, , , django. . , django.

2: , jython Java. , , CPython.

3: , , ZODB . , , .

+4

All Articles