Skip to content

Releases: emillis/cacheMachine

v0.3.4

14 Aug 19:39

Choose a tag to compare

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

v0.3.3

14 Aug 19:22

Choose a tag to compare

The module had a glitch where deferred functionality sometimes wouldn't run if the host function didn't return anything. This has now been fixed

v0.3.2

04 Aug 17:46

Choose a tag to compare

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

v0.3.1

02 Aug 19:23
1e08725

Choose a tag to compare

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.

v0.3.0

17 Jul 18:24

Choose a tag to compare

Added capability of automatic removal of the entry after defined amount of time.

v0.2.1

26 Jun 07:54

Choose a tag to compare

Fixed few minor issues with Copy(c1), Merge(c1, c2) and MergeAndReset(c1, c2) not working

v0.2

23 Jun 18:58

Choose a tag to compare

Added new method, "ForEach(f func(k, v))".
Also added 2 new functions, "Merge(c1, c2)" and "MergeAndRemove(c1, c2)"

v0.1.1

18 Jun 20:23

Choose a tag to compare

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

v0.1.0

15 Jun 18:22

Choose a tag to compare

Initial cache release