Skip to main content

cached(function) - cache function

Project description

https://img.shields.io/pypi/v/cached.svg https://img.shields.io/pypi/pyversions/cached.svg https://img.shields.io/pypi/dm/cached.svg

Install

github.com: pip install git+git://github.com/russianidiot/cached.py.git

pypi.python.org: pip install cached

download: [ -e requirements.txt ] && pip install -r requirements.txt; python setup.py install

Usage

from cached import *

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

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

Feedback

github_issues - Github Issues

gitter - Chat with me (english/russian)

russianidiot.github.io/python/ - my Python packages

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.4.tar.gz (4.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page