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

Commit

Permalink
Revert changes on Redis list size iddue
Browse files Browse the repository at this point in the history
  • Loading branch information
WJXHenry committed May 13, 2019
1 parent c18fb68 commit 6594cde
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 - 1)
await this.client.ltrim(key, 0, this.maxElements)
}

/**
Expand Down

0 comments on commit 6594cde

Please sign in to comment.