Skip to main content

cache results of function call with expire and maxsize.

Project description

# Sized Cacher

Cache results of function call with expire and maxsize.

`pip3 install -U sized-cacher`

## Usage

```python
disk_cache = DiskCache("./caches", maxsize=3)

@disk_cache.caching
def fn(a):
return a

for i in range(10):
print(fn(i))
```

## API

* `self.save(value, *args, **kwargs)`
* `new_func = self.caching(func)`


Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sized_cacher-1.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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