net-dynamic-api icon indicating copy to clipboard operation
net-dynamic-api copied to clipboard

Implement Caching

Open DeeJayTC opened this issue 2 years ago • 0 comments

Classes can be configured to have caching enabled and a cache lifetime set. If a class has these two config values set the library is supposed to automatically cache the API results for this specific class.

Caching should be implemented in various ways

  • Implement a generic ICachable interface with store, get and delete methods
  • Add the interface to the GenericRepository and make sure the methods are called in the coresponding methods
  • Add necessary functionality to support either InMemoryCache or Redis
  • Add OutputCaching (See Here) and make it configurable

DeeJayTC avatar Mar 26 '22 00:03 DeeJayTC