A Redis cache adapter for Mikro-ORM, providing high-performance caching using Node.js v8 serialize/deserialize instead of JSON. Version 4.0.1 requires ioredis ^5.3.2 and Mikro-ORM 4.x (not specified but likely). Uses structured clone algorithm for better handling of Buffers, Dates, Maps, Sets, and cyclic objects, but cannot serialize functions, symbols, or uncopyable data. Supports passing a pre-configured ioredis client or connection options. Available on npm, ships TypeScript types.
npm install mikro-orm-cache-adapter-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Mikro-ORM with Redis cache adapter using ioredis connection options.
Use Mikro-ORM custom serializers or custom types for such data before caching.
Set keyPrefix in options to customize.
Provide either a client or connection options, not both.
Use debug only for development; production should disable it.
import { RedisCacheAdapter } from 'mikro-orm-cache-adapter-redis'npm install ioredis
npm install mikro-orm-cache-adapter-redis ioredis
resultCache: { adapter: RedisCacheAdapter, options: {...} }