Created
March 25, 2020 17:07
-
-
Save qingant/bab17afa46d07d2ec3f439573fc4dd31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface RedisString { | |
tag: "RedisString"; | |
value: Uint8Array; | |
} // binary safe byte string | |
export interface RedisBulkString { | |
tag: "RedisBulkString"; | |
value: Uint8Array; | |
} | |
export interface RedisNumber { | |
tag: "RedisNumber"; | |
value: number; | |
} | |
export interface RedisError { | |
tag: "RedisError"; | |
value: Uint8Array; | |
} | |
export interface RedisNil { | |
tag: "RedisNil"; | |
} | |
export type ArrayItem = RedisString | RedisNumber | RedisError | |
| RedisBulkString; | |
export interface RedisArray { | |
tag: "RedisArray"; | |
value: ArrayItem[]; | |
} | |
export type RedisValue = RedisString | RedisNumber | RedisError | RedisNil | |
| RedisArray | RedisBulkString; | |
const RedisNilValue: RedisValue = { | |
tag: "RedisNil" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment