Add caching capabilities with in-memory cache #48
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
medium priority
Medium priority issue
Purpose
Create caching functionality for rules fetched from data source. Implement first cache provider in-memory.
Main functionalities
Extend Rules.Framework functionalities by adding following cache behavior:
Proposal
Perform changes to selected points:
RulesEngine
will ask toIRulesDataSource
the collection of rules active for "ContenType1" between 2021-11-28 (limit inclusive) and 2021-11-29 (limit exclusive). When this happens and caching is active, result will be stored on cache with key composed of "ContenType1", 2021-11-28 and 2021-11-29.RulesEngine
-MatchOneAsync(...)
,MatchManyAsync(...)
,SearchAsync(...)
- considering conditions:Create cache abstractions to allow:
And implement a cache specific implementation for in-memory, considering the abstractions above and grouping cached values by content type.
NOTE: proposal is open to debate and actual implementation plan is to be added later here.
The text was updated successfully, but these errors were encountered: