Releases: eko/gocache
v3.1.0
What's Changed
- Bump github.com/stretchr/testify from 1.7.1 to 1.7.2 by @dependabot in #149
- chain set to run set on all cache stores by @ashtonian in #146
- add standard not found error by @ashtonian in #142
- Updated error messages to be in lowercase by @eko in #152
New Contributors
- @ashtonian made their first contribution in #146
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's Changed
- Fix Loadable cache NPE when setting loaded value by @braginini in #148
New Contributors
- @braginini made their first contribution in #148
Full Changelog: v3.0.0...v3.0.1
v3.0.0
What's Changed
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
What's Changed
- Updated readme with install instructions by @coolblknerd in #132
- Bump github.com/smartystreets/assertions from 1.2.1 to 1.13.0 by @dependabot in #133
- Bump github.com/prometheus/client_golang from 1.12.1 to 1.12.2 by @dependabot in #137
- Bump github.com/spf13/cast from 1.4.1 to 1.5.0 by @dependabot in #136
- Make setTags method concurrency-safe by @Magomogo in #138
New Contributors
- @coolblknerd made their first contribution in #132
- @Magomogo made their first contribution in #138
Full Changelog: v2.3.0...v2.3.1
v2.3.0
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
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
- @coolka made their first contribution in #97
- @terev made their first contribution in #100
- @Stoakes made their first contribution in #103
- @derekperkins made their first contribution in #110
- @yashmit178 made their first contribution in #116
- @meDavidNS made their first contribution in #123
Full Changelog: v2.1.0...v2.2.0
v2.1.0
v2.0.0: Merge pull request #90 from eko/added-context
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
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
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