Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# cacher-v2

<a name="v2.8.2"></a>
## [v2.8.2] - 2025-08-27
### Fixes
- use pipeline without tx


<a name="v2.8.1"></a>
## [v2.8.1] - 2025-08-21
### Other Improvements
- downgrade go-redis version to v9.11.0
- downgrade go-redis version to v9.11.0 ([#61](https://github.com/kumparan/cacher/issues/61))


<a name="v2.8.0"></a>
Expand Down Expand Up @@ -618,7 +624,8 @@
<a name="v1.0.0"></a>
## v1.0.0 - 2019-04-01

[Unreleased]: https://github.com/kumparan/cacher/compare/v2.8.1...HEAD
[Unreleased]: https://github.com/kumparan/cacher/compare/v2.8.2...HEAD
[v2.8.2]: https://github.com/kumparan/cacher/compare/v2.8.1...v2.8.2
[v2.8.1]: https://github.com/kumparan/cacher/compare/v2.8.0...v2.8.1
[v2.8.0]: https://github.com/kumparan/cacher/compare/v1.20.0...v2.8.0
[v1.20.0]: https://github.com/kumparan/cacher/compare/v1.19.0...v1.20.0
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cacher@v2.8.1
cacher@v2.8.2
5 changes: 4 additions & 1 deletion keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ func (k *keeper) StoreMultiHashMembers(ctx context.Context, mapIdentifiersToMemb
return nil
}

pipeline := k.connPool.TxPipeline()
// using Pipeline instead of TxPipeline because TxPipeline force operation on multiple keys
// to be done in 1 cluster slot, so it doesn't support multiple slot operation
// reference: https://stackoverflow.com/a/38042895
pipeline := k.connPool.Pipeline()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tambahin comment kenapa diganti gini jung

for i, items := range mapIdentifiersToMembers {
for _, v := range items {
err = pipeline.HSet(ctx, i, v.GetKey(), v.GetValue()).Err()
Expand Down