-
-
Couldn't load subscription status.
- Fork 221
Open
Description
Our application has configuration options to set up the caching hierarchy. If none of them are configured, we end up with a ChainCache with no stores configured. When this happens, Get() returns a default-constructed value type rather than an error. For example, ChainCache[[]byte].Get() returns a 0-length []byte.
Steps for Reproduction
- Configure a
ChainCache[[]byte]with no stores. - Call
cache.Get()and observe the result coming back
Expected behavior:
Get() returns an error of some sort.
Actual behavior:
Get() returns a default-constructed value which looks like a cache hit, but is really malformed data.
Versions:
lib/v4 v4.2.0
Metadata
Metadata
Assignees
Labels
No labels