Skip to main content

Cache Function

You can use this python decorator Github-flavored Markdown to cache a result of a function.

Installation

pip install -i https://test.pypi.org/simple/ cache-function-deepakmishra

Usage

Production Setting

from cache_function import cache_function
cache_function.cache = **your cache object which has get and set functions**

Development Setting

from cache_function import cache_function, test_cache_function
cache_function.cache = test_cache_function.DummyCache()

Usage: Cache a function result

from cache_function.cache_function import cache_function

@cache_function(expiry=30) # time in seconds
def foo(a, b, c):
    return a + b + c

Metadata

Release files for cache-function-deepakmishra 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cache-function-deepakmishra 0.0.3
File Size Uploaded Provenance
cache-function-deepakmishra-0.0.3.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cache-function-deepakmishra 0.0.3
File Interpreter ABI Platform
cache_function_deepakmishra-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / cache-function-deepakmishra-0.0.3.tar.gz

Download URL cache-function-deepakmishra-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
af1c73c13974081b26cdf8b15bd37612cb6c462b5d558d5c466274ca33807f03
BLAKE2b-256 checksum
How to use checksums
4992eef19642972cbb5949b6a36476979985cf73adc00a02f4abf9712be5055a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release files / cache_function_deepakmishra-0.0.3-py3-none-any.whl

Download URL cache_function_deepakmishra-0.0.3-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1fc4ee57940ad80bf77acab95f71b1d89065426e422efb52e48b9e4568259e7
BLAKE2b-256 checksum
How to use checksums
390e719b82bde24fb85d683c123c44a3e4065d79a1d089f1505864517a7fdfd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Security for cache-function-deepakmishra 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page