1. Mariano Mara
  2. BeakerIssue31

Source

BeakerIssue31 / beaker / cache.py

Author Commit Message Date Builds
Mariano Mara
Adding fix for bug plus the corresponding tests in tests/test_issue31.py
zzzeek
* propose that we go to 1.6 on this one since we're on a roll * cache decorators @cache.cache(), @cache_region() won't include first argument named 'self' or 'cls' as part of the cache key. This allows reasonably safe usage for methods as well as functions. (#55) * factor down cache decorators + invalidate logic into two private functions called by both CacheManager and the standalone functions. * remove unused cache_region() body that somehow was …
zzzeek
* Fixed bug whereby CacheManager.invalidate wouldn't work for a function decorated by cache.cache(). (#61)
zzzeek
* Defer running of pkg_resources to look for external cache modules until requested. #66 Unfortunately, a simple test against a "package" is not conceived here. Would be best if an entrypoint were artificially shoved into pkg_resources. and they say my code is hard to follow...
Ben Bangert
Fix cache region check location. Update session docs.
Nick Pilon
Make _get_cache work right with inheritance.
Mike Bayer
- docstrings in cache module use sphinx-style parameter lists - google, sqla, memcached, database backends can be imported without those libs present. use a namespace-level classmethod to import dependencies. - added a sys.path to the setup for sphinx build (cd into beaker/docs and "make", right ?)
Ben Bangert
* pkg_resources scanning for additional Beaker back-ends gracefully handles situations where its not present (GAE). Fixes #36.
Ben Bangert
Use working cache region decorators for CacheManager.
Yannick Gingras
repaired invalidating cache on a function decorated with args
Yannick Gingras
fixed bug for invalidating cache on a function decorated with no args
Ben Bangert
Tag 1.5 final
Tags
v1.5
Ben Bangert
* Add cache_region decorator that works *before* configuration of the cache regions have been completed for use in module-level decorations.
Ben Bangert
Add region invalidator/decorator without need of a CacheManager
Ben Bangert
* Add CacheManager.invalidate function to easily invalidate cache spaces created by the use of the cache decorator.
Ben Bangert
Use region_invalidate
Ben Bangert
* Add CacheManager.invalidate function to easily invalidate cache spaces created by the use of the cache_region decorator.
Ben Bangert
* Fix bug with SyntaxError not being caught properly in entry point discovery.
Ben Bangert
Adding more docs
Ben Bangert
More doc updates
Ben Bangert
merge
bi...@zalaptop3ubuntu
Added additional module rst files.
Ben Bangert
Merging docs
Jon Dugan
add simple example for CacheManger.cache()
Jon Dugan
add CacheManager.cache() decorator to create a cache without using a region add tests for for CacheManager.cache()
Ben Bangert
Ignore invalid backend
Ben Bangert
* Added setuptools entry points to dynamically discover additional namespace backends.
Ben Bangert
Tweak doc string
Ben Bangert
Expound on why the region decorator needs an argument
Ben Bangert
* Added cache.region decorator to the CacheManager object. * Added cache regions. Can be provided in a configuration INI type, or by adding in a cache_regions arg to the CacheManager.
  1. Prev
  2. 1
  3. 2
  4. Next