PyLocache
PyLocache is a Python implementation of LRU local cache.
Features
Memcache-like APIs.
Thread safe.
Expiration support.
Installation
$ pip install pylocache
virtualenv is strongly recommended.
Usage
from pylocache import LocalCache
cache = LocalCache(max_size=5)
cache.set('foo', 1)
cache.set('bar', 2)
cache.get('foo') # 1
cache.set('hello', 'world', expires=3) # expires in 3 seconds.
# All items of it will be expired in 2 seconds after being set.
volatile_cache = LocalCache(max_size=5, expires=2)
Change History
0.0.3
Fixed installation bug.
0.0.2
Added delete method.
Metadata
Release files for PyLocache 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyLocache-0.0.4.tar.gz | 3.4 kB | Without provenance | Details for PyLocache-0.0.4.tar.gz |
Release files / PyLocache-0.0.4.tar.gz
| Download URL | PyLocache-0.0.4.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
448cc25b11a01b64ca18262772c81dad45201e4b6eb9123b96d2a2b1d59a636d
|
|
BLAKE2b-256 checksum How to use checksums |
d0124f3c0c250c0aed5d6f1fb7545a87e9e1e0507f8eb015bdcce7e4966107ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PyLocache 0.0.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.