Skip to main content

Function output cacher

Project description

PyPI version

OutCache

Function output cacher

Regular usage:

from outcache import Cache


@Cache(minutes=1)
def get_profile(email: str, username: str):
    my_dict = {"email": email, "username": username}

    return my_dict

profile = get_profile("example@example.com", username="example")

Async usage

from outcache import CacheAsync

@CacheAsync(minutes=1)
async def get_profile(email: str, username: str):
    my_dict = {"email": email, "username": username}

    return my_dict

profile = await get_profile("example@example.com", username="example")

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

OutCache-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

OutCache-1.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file OutCache-1.0.1.tar.gz.

File metadata

  • Download URL: OutCache-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for OutCache-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4b9affec87982da152a755b838031ba753d13c6d8379127e2f9cd1373643556e
MD5 606b2ac474f3196a42fdf87f841c2678
BLAKE2b-256 aedc0a642bb0da807fc15100ca9c8ff49533d453cc0a978a51309d38aff6e645

See more details on using hashes here.

File details

Details for the file OutCache-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: OutCache-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for OutCache-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47088a391f911f96f50139d02bad5b35474ff67655177e6192b403e450fac2cd
MD5 3affcc281222d4dcce3c67aa28f5d787
BLAKE2b-256 fa9e1e06fd74b8df259af7f34ea85a1e8894b9244bec3be4f6022f8f118e0dad

See more details on using hashes here.

Supported by

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