cached(function) - cache function
Project description
Install
$ [sudo] pip install cached
Usage
>>> from cached import cached
>>> cached(func)()
Examples
>>> def func(*args,**kwags):
print('log')
return "result"
>>> cached(func)()
log
'result'
>>> cached(func)() # cached :)
'result'
Sources
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-1.0.4.tar.gz
(1.3 kB
view hashes)