Skip to content

Releases: eko/gocache

v3.1.0

14 Jun 18:42
@eko eko
60d868f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.1...v3.1.0

v3.0.1

06 Jun 20:37
@eko eko
cc09f77
Compare
Choose a tag to compare

What's Changed

  • Fix Loadable cache NPE when setting loaded value by @braginini in #148

New Contributors

Full Changelog: v3.0.0...v3.0.1

v3.0.0

26 May 07:50
@eko eko
1a47e5f
Compare
Choose a tag to compare

What's Changed

  • Reworked options to be variadics by @eko #143
  • Added generics support by @eko in #139

This version have breaking changes in the 2 following changes:

Reworked options

We've updated options to use variadics instead of having a hard options argument at the end and often have to give nil.

Instead of this:

err := cacheManager.Set(ctx, "my-key", "my-value", nil)

you will now be able to remove the nil argument:

err := cacheManager.Set(ctx, "my-key", "my-value")

and if you have some options to pass:

err := cacheManager.Set(
    ctx,
    "my-key",
    "my-value",
    store.WithExpiration(10 * time.Second),
    store.WithTags([]string{"my-amazing-tag"}),
)

Generics support

We have updated code base to use generics: you could still give any, such as the following:

cacheManager := cache.New[any](redisStore)

or, if you know you will store only a certain object, directly pass it:

cacheManager := cache.New[*Book](redisStore)

Full Changelog: v2.3.1...v3.0.0

v2.3.1

22 May 13:56
@eko eko
282c533
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

13 Apr 12:22
@eko eko
34ac5e4
Compare
Choose a tag to compare

What's Changed

  • Bump github.com/prometheus/client_golang from 1.12.0 to 1.12.1 by @dependabot in #125
  • Bump github.com/coocood/freecache from 1.2.0 to 1.2.1 by @dependabot in #128
  • Bump github.com/go-redis/redis/v8 from 8.11.4 to 8.11.5 by @dependabot in #130
  • Bump github.com/stretchr/testify from 1.7.0 to 1.7.1 by @dependabot in #129

Full Changelog: v2.2.0...v2.3.0

v2.2.0

23 Jan 14:12
@eko eko
8c5c1f1
Compare
Choose a tag to compare

What's Changed

  • Bump github.com/go-redis/redis/v8 from 8.9.0 to 8.10.0 by @dependabot in #94
  • Bump github.com/dgraph-io/ristretto from 0.0.3 to 0.1.0 by @dependabot in #95
  • mutex on codec to prevent race conditions by @coolka in #97
  • Bump github.com/prometheus/client_golang from 1.10.0 to 1.11.0 by @dependabot in #96
  • Bump github.com/golang/mock from 1.5.0 to 1.6.0 by @dependabot in #98
  • Fix Race Condition in Memcached Store, Close Loadable to Stop Setter Routine by @terev in #100
  • Bump github.com/go-redis/redis/v8 from 8.10.0 to 8.11.0 by @dependabot in #102
  • Add patrickmn/go-cache to README by @Stoakes in #103
  • Bump github.com/go-redis/redis/v8 from 8.11.0 to 8.11.1 by @dependabot in #107
  • Bump github.com/spf13/cast from 1.3.1 to 1.4.0 by @dependabot in #106
  • Bump github.com/go-redis/redis/v8 from 8.11.1 to 8.11.2 by @dependabot in #108
  • fix instanciation typo by @derekperkins in #110
  • Bump github.com/go-redis/redis/v8 from 8.11.2 to 8.11.3 by @dependabot in #109
  • Bump github.com/spf13/cast from 1.4.0 to 1.4.1 by @dependabot in #111
  • Bump github.com/go-redis/redis/v8 from 8.11.3 to 8.11.4 by @dependabot in #112
  • Bumped to go 1.17 by @eko in #113
  • Bump github.com/smartystreets/goconvey from 1.6.4 to 1.6.6 by @dependabot in #115
  • Update LICENSE by @yashmit178 in #116
  • Bump github.com/smartystreets/goconvey from 1.6.6 to 1.6.7 by @dependabot in #117
  • Bump github.com/smartystreets/goconvey from 1.6.7 to 1.7.2 by @dependabot in #119
  • Bump github.com/smartystreets/assertions from 1.2.0 to 1.2.1 by @dependabot in #120
  • Bump github.com/coocood/freecache from 1.1.1 to 1.2.0 by @dependabot in #121
  • Bump github.com/prometheus/client_golang from 1.11.0 to 1.12.0 by @dependabot in #124
  • feat: Support for a key that would implement it's own key generator by @meDavidNS in #123

New Contributors

Full Changelog: v2.1.0...v2.2.0

v2.1.0

01 Jun 11:56
@eko eko
0fc1d72
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0: Merge pull request #90 from eko/added-context

28 May 16:58
@eko eko
4914d74
Compare
Choose a tag to compare

⚠️ This is a new major release because of API BC break: context was added to all cache methods.

New Features

a61fbe3 Added context to cache methods

Fixes

4699aca fix: fix cacheManager use error with redis and pegasus

Other

b2b1571 Bump github.com/go-redis/redis/v8 from 8.8.3 to 8.9.0
4b757ae Bump github.com/go-redis/redis/v8 from 8.8.2 to 8.8.3
ef7808a Update README.md

v1.2.0

02 May 08:30
@eko eko
1a9de67
Compare
Choose a tag to compare

New Features

6f0b55f Moved from travis-ci to github actions
f5dcbee feat: add apache pegasus store

Fixes

f2a0586 fix: rebase latest and resolve comment
6ab2bc0 fixed rediscluster_test add context.TODO()
aa3f31c fixed rediscluster_test
ffd7fde fix: return an error instead panic as a fallback in bigcache store

Other

610ce4b Upgrade to GitHub-native Dependabot
6f7b7b8 build(deps): bump github.com/go-redis/redis/v8 from 8.8.0 to 8.8.2
5efb409 docs(readme): add descriptions about how to deal with the returned error from the redis storage
ddc81b3 build(deps): bump github.com/go-redis/redis/v8 from 8.7.1 to 8.8.0
afb1aba mr
39e232c 支持 github.com/patrickmn/go-cache
51d1e1a build(deps): bump github.com/prometheus/client_golang
6ff1f44 update redis client to version 8 add redis cluster client tests
26e7da1 build(deps): bump github.com/golang/mock from 1.4.4 to 1.5.0
f23aa7d update bigcache version

v1.1.1

20 Jan 08:22
@eko eko
601b20d
Compare
Choose a tag to compare

New Features

371ff1e Using simple set redis commands to invalidate tags (#3)
203d229 Replaced the tags csv string by a hset

Other

601b20d Ran go mod tidy
e82ef1c build(deps): bump github.com/stretchr/testify from 1.6.1 to 1.7.0
30ca7e3 build(deps): bump github.com/prometheus/client_golang
08eee2f Upgraded to go 1.15 and google.golang.org/appengine go v1.6.7