We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22e5926 commit 32ef8fbCopy full SHA for 32ef8fb
packages/idempotency/src/persistence/RedisPersistenceLayer.ts
@@ -45,12 +45,13 @@ import RedisConnection from './RedisConnection.js';
45
* // Using your own Redis client
46
* import { createClient } from '@redis/client';
47
* import { RedisPersistenceLayer } from '@aws-lambda-powertools/idempotency/redis';
48
+ * import { RedisClientProtocol } from '@aws-lambda-powertools/idempotency/redis/types';
49
*
50
* const redisClient = createClient({ url: 'redis://localhost:6379' });
51
* await redisClient.connect();
52
53
* const persistence = new RedisPersistenceLayer({
- * client: redisClient,
54
+ * client: redisClient as RedisClientProtocol,
55
* });
56
* ```
57
0 commit comments