This PR adds the cache control support for tags.
It enables both pessimistic and optimistic lock under user defined tag(s).
Notice
One thing might breaks current behavior, is the default values of tag's cache control.
Before this feature, tags does not care any cache control but behaves like following the LLC cache control option.
But after this PR, it has falsy options for cache control by default.
So the users who set any of LLC cache control option to true, those users tagged cache become out of cache control unexpectedly.
Test
[x] passed go test . on my local environment
[x] passed go test -run TestConfig on my local environment
Summary
This PR adds the cache control support for tags. It enables both pessimistic and optimistic lock under user defined tag(s).
Notice
One thing might breaks current behavior, is the default values of tag's cache control.
Before this feature, tags does not care any cache control but behaves like following the LLC cache control option. But after this PR, it has falsy options for cache control by default. So the users who set any of LLC cache control option to true, those users tagged cache become out of cache control unexpectedly.
Test
go test .
on my local environmentgo test -run TestConfig
on my local environment