1251c01b73
Previously the SupportsBlocking option was specified by a method on the type, and all the other options were specified from RegisterOptions. This change moves RegisterOptions to a method on the type, and moves SupportsBlocking into the options struct. Currently there are only 2 cache-types. So all cache-types can implement this method by embedding a struct with those predefined values. In the future if a cache type needs to be registered more than once with different options it can remove the embedded type and implement the method in a way that allows for paramaterization. |
||
---|---|---|
.. | ||
manager.go | ||
manager_test.go | ||
proxycfg.go | ||
snapshot.go | ||
state.go | ||
state_test.go | ||
testing.go |