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.

Source Distribution

cached-0.0.4.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file cached-0.0.4.tar.gz.

File metadata

  • Download URL: cached-0.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cached-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f76a96d81009214fb15064e4a2f565ea429ac272e2a2da2d99b74df58c38b337
MD5 912a335d82d90abd52ed3928af6fd2e5
BLAKE2b-256 252ffd25dd06a714099b84c7b16db0ed10359091386e371147297037d57abf58

See more details on using hashes here.

Supported by

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