Python Paste


cache

A caching descriptor wrapper. Takes the attribute name and the wrapped descriptor as arguments.

To expire, use MyClass.cached_attr.expire(my_object) where my_object is an instance of MyClass.


Methods

f __init__(self, name, getter) ...

f __get__(self, obj, type=None) ...

f __set__(self, obj, value) ...

f __delete__(self, obj) ...

f expire(self, obj) ...

See the source for more information.