Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a Caching Mechanism in EToken API #31

Open
4 tasks done
nilanjansen opened this issue May 29, 2019 · 1 comment
Open
4 tasks done

Build a Caching Mechanism in EToken API #31

nilanjansen opened this issue May 29, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@nilanjansen
Copy link
Collaborator

nilanjansen commented May 29, 2019

  • Use In Memory Caching to start with.
  • Cache the data that does not need to refresh every time from database.
  • Refresh cache when there is no user input for given amount of time
  • Log when data is cached and when data is fetched from cache if already cached using in house logging mechanism setup previously
@nilanjansen
Copy link
Collaborator Author

  • Used Microsoft.AspNetCore.ResponseCaching package for caching
  • Added the middleware in Startup
  • Resolved the dependency for IMemoryCache in controller.
  • Cached the GetAll endpoint of UserController because the will not change very frequently.
  • Used SlidingExpiration and Absolute expiration as MemoryCacheEntryOption to cache the collection.
  • Logged the cache using previously setup logging mechanism

Commit id: a5718f7

@nilanjansen nilanjansen self-assigned this May 29, 2019
@nilanjansen nilanjansen added the enhancement New feature or request label May 29, 2019
@nilanjansen nilanjansen added this to the First edition Release milestone May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant