Function-oriented cache interface with built-in memcache, redis, and asyncio support. Current version 0.10.1 provides a decorator-based caching layer, including features like key templating, TTL, and serialization. Release cadence is irregular.
pip install ringNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Simple example using the built-in dict cache.
Replace `@ring.memo` with `@ring.dict({})` or the appropriate backend.Use `from ring import key` and `@ring.dict({})`.For async, ensure you use an async-compatible backend like `ring.redis.client.aioredis_client`.
Use `import ring` and then `@ring.dict({})` instead of `@ring.memo`.Ensure key template uses only strings or proper formatting: `@ring.dict({}, key='/cache/{}')` where `{}` is replaced by a string argument.Use an async-capable backend: `ring.redis.client.aioredis_client` or `ring.dict({})`.No dependency data recorded yet.