You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more a "design question" than an actual "issue", however given its implications I think it is an important question which impacts either the design or the usage constraints.
Given that the KeyToHash (1) function supports string (and []byte), and it returns uint64, it is possible that there are hash collisions.
However the cache.Get (2) method doesn't check if the found entry (if any) actually has the given key. (In fact the store doesn't even support storing the key.)