Skip to content

Commit

Permalink
feat: add zrangebyscoreBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed May 8, 2022
1 parent a02b9ae commit 8275608
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion compat.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@

## Missing buffer commands

- [zrangebyscoreBuffer][1]
- [zrankBuffer][1]
- [zremrangebyrankBuffer][1]
- [zremrangebyscoreBuffer][1]
Expand Down
6 changes: 6 additions & 0 deletions src/commands/zrangebyscore.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import orderBy from 'lodash.orderby'

import { convertStringToBuffer } from '../commands-utils/convertStringToBuffer'
import {
filterPredicate,
getWithScoresAndLimit,
Expand Down Expand Up @@ -40,3 +41,8 @@ export function zrangebyscore(key, inputMin, inputMax, ...args) {
}
return results
}

export function zrangebyscoreBuffer(...args) {
const val = zrangebyscore.apply(this, args)
return convertStringToBuffer(val)
}

0 comments on commit 8275608

Please sign in to comment.