20 lines
738 B
TypeScript
20 lines
738 B
TypeScript
import { CommandParser } from '../client/parser';
|
|
import { BlobStringReply } from '../RESP/types';
|
|
declare const _default: {
|
|
readonly NOT_KEYED_COMMAND: true;
|
|
readonly IS_READ_ONLY: true;
|
|
/**
|
|
* Constructs the TIME command to return the server's current time
|
|
*
|
|
* @param parser - The command parser
|
|
* @returns Array containing the Unix timestamp in seconds and microseconds
|
|
* @see https://redis.io/commands/time/
|
|
*/
|
|
readonly parseCommand: (this: void, parser: CommandParser) => void;
|
|
readonly transformReply: () => [
|
|
unixTimestamp: BlobStringReply<`${number}`>,
|
|
microseconds: BlobStringReply<`${number}`>
|
|
];
|
|
};
|
|
export default _default;
|
|
//# sourceMappingURL=TIME.d.ts.map
|