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.3.22.tar.gz
(1.4 kB
view hashes)
Built Distribution
Close
Hashes for cached-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0a2aebcb9df0ba9ef0c52f94c9d3647a6690041cc61aec3b24820b9b71f68a |
|
MD5 | eb859253cccd1134c84e09016b561b0f |
|
BLAKE2b-256 | f36a95dda4e2d55ad6ecad0722c7b517b75e21b82120c40677a90bff9c95c463 |