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
There was a glitch where sometimes the functions that had deferred fu…
…nctionality but wasn't returning anything wouldn't actually run the deferred functionality. This has now been fixed
Added two new function - "Merge(c1, c2)" and "MergeAndReset(c1, c2)".…
… First one merges everything from c2 into c1. Second one does exactly the same, but additionally, it wipes c2 clean after the merger
Private method "copyData()" is no longer protected by a mutex. A public method using it should use mutex instead.
Added "GetRandomSamples(n int)" method to Cache struct. Ite returns s…
…et of size n of random data from cache. Added benchmark for it too.
Also, changed how Count() int is returned. This does not affect the API.