blastrain / rapidash

Go package for database record or other data caching
MIT License
81 stars 9 forks source link

Added cache control for tags and its tests #34

Closed dolow closed 4 years ago

dolow commented 4 years ago

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

goccy commented 4 years ago

LGTM !!

kanataxa commented 4 years ago

LGTM !