Metadata-Version: 2.2
Name: diskcache-decorator
Version: 0.2.0
Summary: function decorator that caches results to disk
Maintainer: Jacob Brunson
License: Apache-2.0
Project-URL: Repository, https://github.com/pearmaster/diskcache-decorator
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: diskcache>=5.6.3

# diskcache-decorator

```py
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
```
