Skip to main content

diskcache-decorator

from diskcache_decorator import cached

@cached() 
async def my_async_function(a, b):
    await asyncio.sleep(2)  # Simulate some work
    return a + b

await my_async_function(1, 2) # Takes 2 seconds
await my_async_function(1, 2) # Returns immediately

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diskcache_decorator-0.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diskcache_decorator-0.2.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file diskcache_decorator-0.2.0.tar.gz.

File metadata

  • Download URL: diskcache_decorator-0.2.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.20

File hashes

Hashes for diskcache_decorator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ed258599230da2a0f14e63891e7472da13fd285d6d83bcaaa8a888482697d54b
MD5 632e6b40cd3bc429e31911d634f761e6
BLAKE2b-256 64c0512260515425202f52d2f13afa83436c0e856acf8c774091319492c7ff35

See more details on using hashes here.

File details

Details for the file diskcache_decorator-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for diskcache_decorator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dafdbcc35051d85591c6b3df7f9c54d16ea7afc0b9d041ff678a6cf863c4ed4
MD5 497570d76884324ad928f7cd5770a2ac
BLAKE2b-256 043083fb8912e9e6bc6f4c2e18ebe085fe50f930bfd439747452b8ffa5e10f44

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page