cached(function) - cache function
Project description
Installation
$ [sudo] pip install cached
Functions
function | __doc__ |
---|---|
cached.cached(function) |
@cache decorator, cache(function) - cache function result |
Examples
@cached
decorator
>>> from cached import cached
>>> @cached
def func(*args, **kwags):
cached(function)
function
>>> from cached import cached
>>> def func(*args, **kwags):
...
>>> cached(func)()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cached-2019.4.13.tar.gz
(1.5 kB
view hashes)