Skip to content

Commit bce6769

Browse files
Merge pull request #3189 from micaelmbagira/nestjs-v11-caching-breaking-changes
fix(migration): caching Keyv breaking change
2 parents 14cdd83 + 439241e commit bce6769

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/migration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ CacheModule.registerAsync({
187187

188188
Where `KeyvRedis` is imported from the `@keyv/redis` package. See the [Caching documentation](/techniques/caching) to learn more.
189189

190+
> warning **Warning** In this update, cached data handled by the Keyv library is now structured as an object containing `value` and `expires` fields, for example: `{{ '{' }}"value": "yourData", "expires": 1678901234567{{ '}' }}`. While Keyv automatically retrieves the `value` field when accessing data through its API, it’s important to note this change if you interact with the cache data directly (e.g., outside of the cache-manager API) or need to support data written using the previous version of `@nestjs/cache-manager`.`.
191+
190192
#### Config module
191193

192194
If you're using the `ConfigModule` from the `@nestjs/config` package, be aware of several breaking changes introduced in `@nestjs/[email protected]`. Most notably, the order in which configuration variables are read by the `ConfigService#get` method has been updated. The new order is:

0 commit comments

Comments
 (0)