Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 14:58
· 8 commits to main since this release
ea04c2c

🔄 Changed

  • GenericCache no longer holds a Redis client. client_factory, a ConnectionManagerFactory from ddutils called with alias, hands the client out for every call, the way a ddsql adapter runs a query inside factory(alias=...). The factory owns the client's scope (a ScopedRegistry per alias, one client per process and event loop, since redis.asyncio connections bind to the loop they were opened in), its lazy creation and its close on shutdown through close().

⚠️ Breaking changes

  • GenericCache.redis_client → client_factory (+ optional alias); close the clients with client_factory.close() on shutdown. RedisLock still takes the client of one block as before.
  • Requires ddutils 0.3.1.

Full Changelog: v0.0.3...v0.1.0