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

Metadata

Release files for diskcache-decorator 0.2.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 diskcache-decorator 0.2.0
File Size Uploaded
diskcache_decorator-0.2.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for diskcache-decorator 0.2.0
File Interpreter ABI Platform
diskcache_decorator-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / diskcache_decorator-0.2.0.tar.gz

Download URL diskcache_decorator-0.2.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ed258599230da2a0f14e63891e7472da13fd285d6d83bcaaa8a888482697d54b
BLAKE2b-256 checksum
How to use checksums
64c0512260515425202f52d2f13afa83436c0e856acf8c774091319492c7ff35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.20

Release files / diskcache_decorator-0.2.0-py3-none-any.whl

Download URL diskcache_decorator-0.2.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dafdbcc35051d85591c6b3df7f9c54d16ea7afc0b9d041ff678a6cf863c4ed4
BLAKE2b-256 checksum
How to use checksums
043083fb8912e9e6bc6f4c2e18ebe085fe50f930bfd439747452b8ffa5e10f44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.20

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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