You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the task
Implement cache for queries used in following methods.
The default lifetime of the ORM Cache across the application is 10 minutes.
When eviction/removal of cache must be instantaneous and cache cannot live for 10 minutes. One of such scenario is when an institution user is disabled by the admin and the disabled user should NOT be able to access any information right after them being disabled. What it means is, the cache holding the query result pertaining to isActive status of user must be removes immediately when isActive is updated by some other operation.
In such scenario, we could use the the cache id to remove the cache like this.
The cache id must be a combination of cache_id_name + all the parameters of the query.
Describe the task

Implement cache for queries used in following methods.
The default lifetime of the ORM Cache across the application is 10 minutes.
When eviction/removal of cache must be instantaneous and cache cannot live for 10 minutes. One of such scenario is when an institution user is disabled by the admin and the disabled user should NOT be able to access any information right after them being disabled. What it means is, the cache holding the query result pertaining to isActive status of user must be removes immediately when isActive is updated by some other operation.
In such scenario, we could use the the cache id to remove the cache like this.
The cache id must be a combination of cache_id_name + all the parameters of the query.
Ref to typeorm Cache: https://github.com/typeorm/typeorm/blob/master/docs/caching.md
Create a centralized provide to manage the cache keys and cache removal across the application.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: