The redis-adapter package is not compatible with redis clustering mode
example:
import { useAdapter } from '@type-cacheable/redis-adapter';
import { createCluster } from 'redis';
const client = createCluster({ rootNodes: [{ url: `redis://my-cluster-endpoint:6379` }] });
const clientAdapter = useAdapter(client);
error when trying to use above
TypeError: this.redisClient.info is not a function
at RedisAdapter. (..../node_modules/@type-cacheable/redis-adapter/dist/index.js:100:55)
This make the module not usabled for production environments eg AWS Redis / valkey elasticache
The redis-adapter package is not compatible with redis clustering mode
example:
error when trying to use above
TypeError: this.redisClient.info is not a function
at RedisAdapter. (..../node_modules/@type-cacheable/redis-adapter/dist/index.js:100:55)
This make the module not usabled for production environments eg AWS Redis / valkey elasticache