Skip to content

@nogoo9/mcp-server-cloud-fs / 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

StorageProvider

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>

Released under the PolyForm Shield 1.0.0 License.