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.
2 parents 7e9dffa + 7fbb571 commit 14ad0b1Copy full SHA for 14ad0b1
content/techniques/caching.md
@@ -58,10 +58,10 @@ You can manually specify a TTL (expiration time in seconds) for this specific ke
58
await this.cacheManager.set('key', 'value', { ttl: 1000 });
59
```
60
61
-To disable expiration of the cache, set the `ttl` configuration property to `null`:
+To disable expiration of the cache, set the `ttl` configuration property to `0`:
62
63
```typescript
64
-await this.cacheManager.set('key', 'value', { ttl: null });
+await this.cacheManager.set('key', 'value', { ttl: 0 });
65
66
67
To remove an item from the cache, use the `del` method:
0 commit comments