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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: OutCache-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c147ca08c4ec121f624a49eece415212b6c857910542461df28875dacff47d4b
MD5 264071c17176aac5fc81b1eee27fc27a
BLAKE2b-256 e5253f76dd523b0b35c43763a034dc6d8fbe62e945d2ad1271eba5658b1db9bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: OutCache-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d96b7db08f0504f463750e30b1889afe9b10cb39eeb4979a4d69149bee17626d
MD5 d13e8e722b07827f6a6d62223149fb91
BLAKE2b-256 3a638e5b1d9bd640760ac25bfc8f9be2054dbd202b994472c497a2ca5e4323ce

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