Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 567 Bytes

decorators.rst

File metadata and controls

30 lines (20 loc) · 567 Bytes

Decorators

aiocache comes with a couple of decorators for caching results from asynchronous functions. Do not use the decorator in synchronous functions, it may lead to unexpected behavior.

cached

aiocache

../examples/cached_decorator.py

multi_cached

aiocache

../examples/multicached_decorator.py