cached(function) - cache function


Keywords
cached cache function, cache, python
License
BSD-3-Clause
Install
pip install cached==2018.11.19

Documentation

Travis

Install

$ [sudo] pip install cached

Functions

function description
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-md - README.md generator