pysolcache
Project description
pysolcache
Welcome to pysol
Copyright (C) 2013/2025 Laurent Labatut / Laurent Champagnac
pysolcache is a set of python caches : in-memory and/or redis.
Usefull to handle L1 (memory) and L2 (redis) cache for python daemons.
In all cases, serialization/deserialization of stored datas have to be done at client side (ie, serialize as u wish, ujson or equivalent)
All caches are instrumented by Meters (pysolmeters).
MemoryCache:
- A pure python memory cache storing string/binary keys to string/binary values
- Max bytes capped
- Max items count capped
- Items TTLs
- LRU evictions
- Watchdog evictions
RedisCache:
- A redis backed cache, storing string/binary keys to string/binary values
HighCache:
- A high level cache, coupling MemoryCache adn RedisCache, which handle respectively L1 cache (in memory) and L2 cache (inside redis)
HighCacheEx:
- A high level cache, storing internal data as tuple (ms_added, ttl_ms, string/binary data)
- Provided same level of functionality as HighCache but is able to perform an automatic L1 put in case of L2 hit and L1 miss
It is gevent (co-routines) based.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysolcache-3.13.4.tar.gz
(22.5 kB
view details)
File details
Details for the file pysolcache-3.13.4.tar.gz.
File metadata
- Download URL: pysolcache-3.13.4.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
214f963cb9b2eb5d7531e218fdb2f23e56f4cbf3712121984615baa33a2858e8
|
|
| MD5 |
cda0abe72078dd28049a4f68d8279cbb
|
|
| BLAKE2b-256 |
e4c8982181e968755805a4e64abdc5c2ae7c28dd12173c0f95a224655299ebab
|