Skip to content

Commit 6bb0fe2

Browse files
committed
chore: Update cache options in CachedPersonCreator
1 parent 4ee8662 commit 6bb0fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/redis.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Person = {
2121
};
2222

2323
class CachedPersonCreator {
24-
@CacheOptions({selector: '0.name', ttl: 1000})
24+
@CacheOptions('0.name', 10_000)
2525
static async createPerson(person: Person) {
2626
console.log('Person created!!!!!');
2727
return person;

0 commit comments

Comments
 (0)