Skip to main content

cached(function) - cache function

Project description

Install

$ [sudo] pip install cached

Usage

>>> from cached import cached

>>> cached(func)()

Examples

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

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

Sources

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-1.0.4.tar.gz (1.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for cached-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ff2712d6420907754d1aee5e1b6687c40c6dfab9ce99b7a178a30ccf248879fc
MD5 4024767c4589e16bd78167a7f71008b9
BLAKE2b-256 a85000c5d75b48c52bc461944bf823a0b66d44f8002aab6b53404282996d3ce6

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