Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1008 Bytes

README.rst

File metadata and controls

34 lines (22 loc) · 1008 Bytes

zope.cachedescriptors

https://travis-ci.org/zopefoundation/zope.cachedescriptors.png?branch=master

Cached descriptors cache their output. They take into account instance attributes that they depend on, so when the instance attributes change, the descriptors will change the values they return.

Cached descriptors cache their data in _v_ attributes, so they are also useful for managing the computation of volatile attributes for persistent objects.

Persistent descriptors:

  • property

    A simple computed property.

    See src/zope/cachedescriptors/property.txt.

  • method

    Idempotent method. The return values are cached based on method arguments and on any instance attributes that the methods are defined to depend on.

    Note

    Only a cache based on arguments has been implemented so far.

    See src/zope/cachedescriptors/method.txt.