Skip to content

Commit 0f79370

Browse files
Merge pull request #2784 from jpham005/docs/add-cache-manager-note
docs(caching): add note about of cache-manager
2 parents 5268a99 + 74b5478 commit 0f79370

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/techniques/caching.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ $ npm install @nestjs/cache-manager cache-manager
1717
1818
#### In-memory cache
1919

20+
> warning **Note** `In-memory cache` can only store values of types that are supported by [the structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#javascript_types).
21+
2022
Nest provides a unified API for various cache storage providers. The built-in one is an in-memory data store. However, you can easily switch to a more comprehensive solution, like Redis.
2123

2224
In order to enable caching, import the `CacheModule` and call its `register()` method.

0 commit comments

Comments
 (0)