Changes between Version 4 and Version 5 of TracDev/ApiChanges/0.12
- Timestamp:
- Aug 2, 2009, 1:24:36 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ApiChanges/0.12
v4 v5 36 36 == New in the 0.12 API == 37 37 === New Classes === 38 ==== `trac. resource.Resource` ^[source:trunk/trac/resource.py@#L75 (0.12)]^ ==== #Resource38 ==== `trac.cache.CacheProxy` ^[source:trunk/trac/cache.py@#L87 (0.12)]^ ==== #CacheProxy 39 39 40 FIXME: just an example 40 There'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 42 New 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 46 See TracDev/Proposals/CacheInvalidation#CacheManager 41 47 42 48 === New Interfaces ===