Home
last modified time | relevance | path

Searched refs:cachedmethod (Results 1 – 4 of 4) sorted by relevance

/aosp_15_r20/external/python/cachetools/
DCHANGELOG.rst80 - Document how to use shared caches with ``@cachedmethod``.
104 - Remove ``self`` from ``@cachedmethod`` key arguments (breaking
211 - Add `key` and `lock` arguments to ``@cachedmethod``.
217 - Deprecate ``@cachedmethod`` `typed` argument.
219 - Deprecate `cache` attribute for ``@cachedmethod`` wrappers.
245 - Add documentation and unit tests for using ``@cachedmethod`` with
309 - Allow ``@cachedmethod.cache()`` to return None
337 - Remove ``@cachedmethod`` `lock` parameter.
355 - Add ``@cachedmethod`` decorator.
/aosp_15_r20/external/python/cachetools/tests/
Dtest_method.py4 from cachetools import LRUCache, cachedmethod, keys
12 @cachedmethod(operator.attrgetter("cache"))
18 @cachedmethod(operator.attrgetter("cache"), key=keys.typedkey)
34 @cachedmethod(operator.attrgetter("cache"), lock=lambda self: self)
/aosp_15_r20/external/python/cachetools/docs/
Dindex.rst29 from cachetools import cached, cachedmethod, LRUCache, TTLCache
313 .. decorator:: cachedmethod(cache, key=cachetools.keys.hashkey, lock=None)
331 One advantage of :func:`cachedmethod` over the :func:`cached`
342 @cachedmethod(operator.attrgetter('cache'))
371 @cachedmethod(lambda self: self.cache, key=partial(hashkey, 'pep'))
378 @cachedmethod(lambda self: self.cache, key=partial(hashkey, 'rfc'))
404 functions with the :func:`cached` and :func:`cachedmethod` decorators:
/aosp_15_r20/external/python/cachetools/src/cachetools/
D__init__.py549 def cachedmethod(cache, key=hashkey, lock=None): function