Cache
The module can cache config reads to reduce database load.
Configure via cacheOptions.
How caching works
- Enable caching globally via
cacheOptions.isEnabled - Use caching per request via
useCacheonget()andgetList() - Cache is invalidated automatically on
set()anddelete()
Example
CrudConfigModule.register({
cacheOptions: {
isEnabled: true,
maxCacheItems: 1000,
maxCacheTTL: 3600000,
},
});Last updated on