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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cached-0.0.5.tar.gz (7.4 kB) Copy SHA256 hash SHA256 Source None Mar 24, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page