cached(function) - cache function


Keywords
cached cache function, cache, python
License
DSDP
Install
pip install cached==1.0.4

Documentation

Travis

Install

$ [sudo] pip install cached

Examples

>> > from cached import cached

>> > def func(*args, **kwags):
    print('log')
    return "result"

>> > cached(func)()
log
'result'
>> > cached(func)()  # cached :)
'result'

Sources