Skip to main content

Async ready Multi Cache Library

codecov GitHub license PyPI - Status

A python package to use a async ready decorator for caching outputs.

Currently supported cache stores:

  • Filecache
  • Memcached

Requirements

  • memcached

On osx

brew install memcached
brew services start memcached

On Linux

sudo apt-get -y install memcached libmemcached-tools
sudo systemctl enable memcached
sudo systemctl start memcached

Installing the package

pip install mcache

Using it in your application

from mcache import filecache, DAY

@filecache(lifetime=DAY*2)
def add(x):
    return x+4 

print(add(10))

Async

import asyncio
from mcache import filecache, DAY

@filecache(lifetime=DAY*2)
async def add(x):
    return x+4 

print(asyncio.run(add(10)))

Sriram

Metadata

Release files for mcache 1.0.0

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

Source distribution (sdist)

Source distribution for mcache 1.0.0
File Size Uploaded Provenance Actions
mcache-1.0.0.tar.gz 5.8 kB Without provenance Details for mcache-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcache 1.0.0
File Interpreter ABI Platform Actions
mcache-1.0.0-py3-none-any.whl Python 3 none any Details for mcache-1.0.0-py3-none-any.whl

Total release size: 13.7 kB

Release files / mcache-1.0.0.tar.gz

Download URL mcache-1.0.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
61278bd77c5b7ff72906496f382746f9e3b978522c532dd0ca949232b831d735
BLAKE2b-256 checksum
How to use checksums
5552968f4ab7950059ee6b5c81764d2cfc05c51f33ba359da413fb6a39e6de29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

Release files / mcache-1.0.0-py3-none-any.whl

Download URL mcache-1.0.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03f6ca2dedb7e819747b557886224df0afb8c0b0abc2e7c49a1d0dddecae489d
BLAKE2b-256 checksum
How to use checksums
b0cc87c3d1373ac339cbd5be3abbdc06d6cc6d2bef0200a52fa006eebf9572b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

Security for mcache 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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