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 f96cafd commit 5ce3807Copy full SHA for 5ce3807
tests/redis.test.ts
@@ -25,7 +25,7 @@ const cache = await getOrInitializeCache<RedisStore>({
25
});
26
const cachedCreatePerson = cachedFunction(createPerson, {
27
selector: '0.name',
28
- ttl: 10_000,
+ ttl: 1000,
29
30
31
const person = await cachedCreatePerson({
@@ -38,3 +38,5 @@ const person = await cachedCreatePerson({
38
},
39
40
console.log(person.id, person.name);
41
+
42
+await cache.store.client.quit();
0 commit comments