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

Commit

Permalink
Fix Redis list size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WJXHenry committed May 13, 2019
1 parent ccb0ab3 commit 802d4ce
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 802d4ce

Please sign in to comment.