method
RedisClient.bitfield
...operations: string | number[]
): Promise<null | number[]>;
Perform arbitrary bitfield integer operations on strings
@param key
The key to operate on
@param operations
GET, SET, INCRBY, and OVERFLOW subcommands
@returns
Promise that resolves with an array of results, one per subcommand
await redis.bitfield("mykey", "SET", "u8", 0, 255, "GET", "u8", 0);
// [0, 255]Referenced types
type KeyLike = string | ArrayBufferView | Blob