cached(function) - cache function


Keywords
cached cache function, cache, python
License
Unlicense
Install
pip install cached==2019.4.13

Documentation

Travis

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)()

readme-generator