cached(function) - cache function
Project description
Install
[sudo] pip install cached
Usage
>>> from cached import cached
>>> cached(func)()
Example
>>> def func(*args,**kwags):
print('log')
return "result"
>>> cached(func)()
log
'result'
>>> cached(func)() # cached :)
'result'
russianidiot.github.io/python/ - Python packages
russianidiot.github.io/cli/ - command line scripts
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-0.0.17.tar.gz
(2.1 kB
view hashes)