Edgewall Software

Changes between Version 1 and Version 2 of TracDev/CacheManager


Ignore:
Timestamp:
Apr 17, 2014, 3:18:43 PM (10 years ago)
Author:
Alex Willmer <al.willmer@…>
Comment:

Removing @cached_value references. Only the @cached decorator was implemented

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/CacheManager

    v1 v2  
    1919== The Cache Manager ==
    2020Starting with Trac [milestone:0.12] (more precisely r8071), we introduced a !CacheManager component.
    21 That component is mostly transparent to the end developer, which only has to deal with two decorators
     21That component is mostly transparent to the end developer, which only has to deal with a decorator
    2222that can be used to create ''cached attributes''.
    2323
    24  * '''Creating a cached attribute''' is done by defining a retrieval function and decorating it with the '''`@cached_value`''' decorator. For example, for the wiki page names:
     24 * '''Creating a cached attribute''' is done by defining a retrieval function and decorating it with the '''`@cached`''' decorator. For example, for the wiki page names:
    2525{{{
    2626#!python
    27 @cached_value
     27@cached
    2828def pages(self, db):
    2929    """Return the names of all existing wiki pages."""