@nogoo9/mcp-server-cloud-fs / cache/redis / createRedisStore
Function: createRedisStore()
createRedisStore(
provider,redisUrl,opts,caPem?):Promise<RedisStore>
Defined in: cache/redis.ts:109
Loads ioredis at runtime (optional peer dep) and returns a RedisStore. Exits with code 1 and install instructions if ioredis is not installed.
Parameters
provider
redisUrl
string
opts
syncDebounceMs
number
ttlMs
number
caPem?
Buffer<ArrayBufferLike>
Custom CA certificate (PEM) for TLS verification. Only used when redisUrl starts with rediss:// and a private/self-signed CA is in use. For public CAs, rediss:// alone is sufficient.
Returns
Promise<RedisStore>
