Repository navigation
v0.1.0
🔄 Changed
GenericCacheno longer holds a Redis client.client_factory, aConnectionManagerFactoryfrom ddutils called withalias, hands the client out for every call, the way a ddsql adapter runs a query insidefactory(alias=...). The factory owns the client's scope (aScopedRegistryper alias, one client per process and event loop, sinceredis.asyncioconnections bind to the loop they were opened in), its lazy creation and its close on shutdown throughclose().
⚠️ Breaking changes
GenericCache.redis_client→client_factory(+ optionalalias); close the clients withclient_factory.close()on shutdown.RedisLockstill takes the client of one block as before.- Requires ddutils 0.3.1.
Full Changelog: v0.0.3...v0.1.0