Skip to main content

RedisCachePlugin

This plugin provides a Redis-based RedisCacheStrategy which stores cached items in a Redis instance. This is a high-performance cache strategy which is suitable for production use, and is a drop-in replacement for the DefaultCachePlugin.

Note: To use this plugin, you need to manually install the ioredis package:

Signature

options

init

method(options: RedisCachePluginInitOptions) =>

Configuration options for the RedisCachePlugin.

Signature

maxItemSizeInBytes

propertynumber
Default:128kb

The maximum size of a single cache item in bytes. If a cache item exceeds this size, it will not be stored and an error will be logged.

namespace

propertystring
Default:'vendure-cache'

The namespace to use for all keys stored in Redis. This can be useful if you are sharing a Redis instance between multiple applications.

redisOptions

propertyimport('ioredis').RedisOptions

Options to pass to the ioredis Redis client.

Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page