Edgewall Software

Changes between Version 4 and Version 5 of TracDev/ApiChanges/0.12


Ignore:
Timestamp:
Aug 2, 2009, 1:24:36 PM (15 years ago)
Author:
Christian Boos
Comment:

overview of the CacheManager

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ApiChanges/0.12

    v4 v5  
    3636== New in the 0.12 API ==
    3737=== New Classes ===
    38 ==== `trac.resource.Resource` ^[source:trunk/trac/resource.py@#L75 (0.12)]^ ==== #Resource
     38==== `trac.cache.CacheProxy` ^[source:trunk/trac/cache.py@#L87 (0.12)]^ ==== #CacheProxy
    3939
    40 FIXME: just an example
     40There's a new cache subsystem in [source:trunk/trac/cache.py trac.cache] so that Component instances can cache any data in a safe way. Whenever the cache entry is invalidated, the cached value will be automatically refreshed at the next retrieval, even if the invalidation occurs in a different process. This makes the `config.touch()` trick obsolete.
     41
     42New decorators:
     43 - `trac.cache.cached_value` ^[source:trunk/trac/cache.py@#L25 (0.12)]^
     44 - `trac.cache.cached` ^[source:trunk/trac/cache.py@#L65 (0.12)]^
     45
     46See TracDev/Proposals/CacheInvalidation#CacheManager
    4147
    4248=== New Interfaces ===