Closed sethvargo closed 2 years ago
This does technically change the contract of the cacher. It used to be able to cache anything, even a mix of types. This forces an instance of the cacher to cache the same types.
Lol some of the linters don't understand the generics syntax:
Error: pkg/cache/cache.go:156:1: receiver-naming: receiver name c should be consistent with previous receiver name i for invalid-type (revive)
I'm not actually convinced this is a good idea, but it's nice to avoid the type assertion.
Release Note