o-redis is an automatic Redis cache update library that simplifies cache invalidation and synchronization. Version 1.0.33 is the latest stable release, with active development on GitHub. It provides a declarative API for defining cache dependencies and automatically updates caches when underlying data changes, reducing boilerplate. Unlike traditional caching libraries that require manual cache management, o-redis handles cache updates transparently, ideal for Node.js apps with Redis backends. Release cadence is irregular, focused on bug fixes and minor features.
npm install o-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to Redis, initializes o-redis, sets and retrieves a cached object with TTL of 3600 seconds.
Use 'redis' v4.0.0 or later: npm install redis@latest
Migrate to o-redis v1.x: replace package name and update imports.
Replace autoUpdate() calls with updateOnDependency().
Always provide a TTL in seconds to set() for production use.
Update to redis v4+ and use client.connect() before passing to o-redis.
Ensure Redis client is connected and passed to oRedis() as the first argument.
Update to o-redis@1.0.11 or later: npm install o-redis@latest