Releases: eko/gocache
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
v1.1.0
New Features
a7ab8a7 Implement GetWithTTL for freecache
46a7306 implement interface function
f31406a added new store (freecache)
ab7dc64 propagate TTL
26e0f71 supporting ristretto ttl
Fixes
81bfa26 Removed strings.ToLower on cache key
8adc7b7 remove-log: drop logging in two places
a3941db Do not hash key if its type is string
99d5369 fixing tests
a9a0f81 doc: fix cache.Options => store.Options
e3e61d7 doc: fix bigcache with wrong value type
24c4223 docs: fixed typo in README file
80c1102 Fix redis tags: redis client is returning strings
Other
cb3adf2 build(deps): bump github.com/prometheus/client_golang
9e5334e add test for invalid key
5579dbd more tests
c36606f Added more tests
1db2250 go mod tidy
b1c560c update documentation
0bc17c6 add tests for GetWithTTL
91984f7 tidy go sum
6fd2efd update documentation
0966a70 update tests
3810cba add gitignore
7f5df68 adding more test coverage
5663aac reverting proto support to give as separate PR
fa5190f running go mod tidy
c76d860 revert go.sum
6e3cd45 test coverage added
5f6b57c build(deps): bump github.com/golang/mock from 1.4.3 to 1.4.4
8fa11e5 build(deps): bump github.com/dgraph-io/ristretto from 0.0.2 to 0.0.3
7d3ab73 build(deps): bump github.com/prometheus/client_golang
497836c build(deps): bump github.com/prometheus/client_golang
0b50739 build(deps): bump github.com/stretchr/testify from 1.6.0 to 1.6.1
ef103e8 build(deps): bump github.com/go-redis/redis/v7 from 7.3.0 to 7.4.0
4d3fd48 build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0
8b9ffef build(deps): bump github.com/go-redis/redis/v7 from 7.2.0 to 7.3.0
70f9205 revert
d9c5f5b test with go1.13-issue with using forks in other projects
04e814f build(deps): bump github.com/prometheus/client_golang
3a8bb97 build(deps): bump github.com/prometheus/client_golang
b65b9d3 build(deps): bump github.com/golang/mock from 1.4.1 to 1.4.3
9923c46 build(deps): bump github.com/prometheus/client_golang
5ca9b93 Upgrade to go1.14
b85d8c5 build(deps): bump github.com/golang/mock from 1.4.0 to 1.4.1
79b65cf build(deps): bump github.com/go-redis/redis/v7 from 7.1.0 to 7.2.0
c798b07 build(deps): bump github.com/stretchr/testify from 1.4.0 to 1.5.1
3896b7a build(deps): bump github.com/go-redis/redis/v7 from 7.0.1 to 7.1.0
3ab560a build(deps): bump github.com/go-redis/redis/v7
1ce8623 build(deps): bump github.com/prometheus/client_golang
a9fa870 build(deps): bump github.com/go-redis/redis/v7
7b615f6 build(deps): bump github.com/prometheus/client_golang
5ded7b2 build(deps): bump github.com/golang/mock from 1.3.1 to 1.4.0
f3f6db0 build(deps): bump github.com/go-redis/redis/v7
edd0dad build(deps): bump github.com/prometheus/client_golang