Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#148 Further changes on "Performance. We should remove only appropria…
…te records from cache when some event is triggered (not all ones)"
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 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
bef112c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this commit? I don't see any point in having the extra "-"? Can you advise?
bef112c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, if ID 1 is passed, then it'll remove everything starting 1 (e.g. 1 and 18)
bef112c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Didn't realise the key was a StartsWith and not Equals. Thanks.
bef112c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess what. I'm dumb. _cacheManager.RemoveByPattern. Thanks again