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
The problem that I thought was with the defer in the last release was actually the problem of method receiver being a value instead of a pointer. That caused the mutex to be copied and therefore the locks didn't work. This now has been fixed
Fixed glitch where Cache.GetEntry was returning empty interface instead of a nil value. Now if called to retrieve a key that doesn't exist in the cache, it will return nil
Fixed glitch where cache method "Get" was crashing if nil return value encountered.
Added new cache method "GetValue" which returns only value instead of value and boolean.
Added new method called "GetRandomSamples(n int)". This returns a random sample map of size n.
Also, changed how "Count() int" returns the count. This does not affect the API though