-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cats): Allow partial cache updates
Currently, cache providers (either Default or SQL) evicts all those keys not present on the CacheResult. This prevents doing partial updates in on-demand caching agents, which may come in handy when the query operation is a costly one and only a subset of the keys may actually need updating. This patch introduces the notion of a partial CacheResult, which allows keeping the keys not present on the CacheResult if the partialResult flag is set to true. This change is backwards compatible, keeping the previous behaviour (replacement strategy) by default.
- Loading branch information
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters