You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
export { FIRST_KEY_INDEX, transformArguments } from './BLPOP';
|
|
|
|
export const BUFFER_MODE = true;
|
|
|
|
type BLPopBufferReply = null | {
|
|
key: Buffer;
|
|
element: Buffer;
|
|
};
|
|
|
|
export function transformReply(reply: null | [Buffer, Buffer]): BLPopBufferReply {
|
|
if (reply === null) return null;
|
|
|
|
return {
|
|
key: reply[0],
|
|
element: reply[1]
|
|
};
|
|
}
|