Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #96 from WJXHenry/redis-list-size-issue
Browse files Browse the repository at this point in the history
Fix Redis list size issue
  • Loading branch information
j-rewerts committed Jul 25, 2019
2 parents ccb0ab3 + 802d4ce commit 423af3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/change-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ChangeWriter {
async add(key, obj) {
let value = JSON.stringify(obj)
await this.client.lpush(key, value)
await this.client.ltrim(key, 0, this.maxElements)
await this.client.ltrim(key, 0, this.maxElements - 1)
}

/**
Expand Down

0 comments on commit 423af3d

Please sign in to comment.