# 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)`
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)`
Metadata
Release files for sized-cacher 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sized_cacher-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / sized_cacher-1.1-py3-none-any.whl
| Download URL | sized_cacher-1.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a31546769543d72bcd06a82672fc77bf8e3d819b7d6eb9fb61d21e68ac6f12ec
|
|
BLAKE2b-256 checksum How to use checksums |
d03a9bbdbb6c2d19563f83990acdb9a260c1ac70d13192852a180033700f79fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1
|
Security for sized-cacher 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.