pico-data-redis¶
A shared injectable Redis client, and the backend that makes @cacheable distributed.
Install¶
30-second example¶
from redis import Redis
from pico_ioc import component
@component
class Sessions:
def __init__(self, redis: Redis):
self._redis = redis
Installed next to pico-caching, every @cacheable method transparently caches in Redis instead of process memory.
See it in context: the flagship use case wires this module into a full order platform together with the rest of the ecosystem.