- Add
@cached
function decorator. - Add
hashkey
andtypedkey
fuctions. - Add key and lock arguments to
@cachedmethod
. - Set
__wrapped__
attributes for Python versions < 3.2. - Move
functools
compatible decorators tocachetools.func
. - Deprecate
@cachedmethod
typed argument. - Deprecate cache attribute for
@cachedmethod
wrappers. - Deprecate getsizeof and lock arguments for cachetools.func decorator.
- Clear cache statistics when calling
clear_cache()
.
- Allow simple cache instances to be pickled.
- Refactor
Cache.getsizeof
andCache.missing
default implementation.
- Code cleanup for improved PEP 8 conformance.
- Add documentation and unit tests for using
@cachedmethod
with generic mutable mappings. - Improve documentation.
- Provide
RRCache.choice
property. - Improve documentation.
- Use a
NestedTimer
forTTLCache
.
- Deprecate
Cache.getsize()
.
- Ignore
ValueError
raised on cache insertion in decorators. - Add
Cache.getsize()
. - Add
Cache.__missing__()
. - Feature freeze for v1.0.
- Fix MANIFEST.in.
- Deprecate
TTLCache.ExpiredError
. - Add choice argument to
RRCache
constructor. - Refactor
LFUCache
,LRUCache
andTTLCache
. - Use custom
NullContext
implementation for unsynchronized function decorators.
- Raise
TTLCache.ExpiredError
for expiredTTLCache
items. - Support unsynchronized function decorators.
- Allow
@cachedmethod.cache()
to return None
- No formatting of
KeyError
arguments. - Update
README.rst
.
- Do not delete expired items in TTLCache.__getitem__().
- Add
@ttl_cache
function decorator. - Fix public
getsizeof()
usage.
- Add
TTLCache
. - Add
Cache
base class. - Remove
@cachedmethod
lock parameter.
- Add proper locking for
cache_clear()
andcache_info()
. - Report size in
cache_info()
.
- Remove
@cache
decorator. - Add
size
,getsizeof
members. - Add
@cachedmethod
decorator.
- Add
@cache
decorator. - Update documentation.
- Initial release.