Skip to content

Commit 5ce3807

Browse files
committed
chore: test
1 parent f96cafd commit 5ce3807

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/redis.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const cache = await getOrInitializeCache<RedisStore>({
2525
});
2626
const cachedCreatePerson = cachedFunction(createPerson, {
2727
selector: '0.name',
28-
ttl: 10_000,
28+
ttl: 1000,
2929
});
3030

3131
const person = await cachedCreatePerson({
@@ -38,3 +38,5 @@ const person = await cachedCreatePerson({
3838
},
3939
});
4040
console.log(person.id, person.name);
41+
42+
await cache.store.client.quit();

0 commit comments

Comments
 (0)