You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-13 10:02:24 +03:00
remove some commands from cluster, npm update, clean code,
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { createHash } from 'crypto';
|
||||
import { RedisCommand } from './commands';
|
||||
|
||||
export interface RedisLuaScriptConfig extends RedisCommand {
|
||||
export interface RedisScriptConfig extends RedisCommand {
|
||||
SCRIPT: string;
|
||||
NUMBER_OF_KEYS: number;
|
||||
}
|
||||
@@ -10,13 +10,7 @@ export interface SHA1 {
|
||||
SHA1: string;
|
||||
}
|
||||
|
||||
export type RedisLuaScript = RedisLuaScriptConfig & SHA1;
|
||||
|
||||
export interface RedisLuaScripts {
|
||||
[script: string]: RedisLuaScript;
|
||||
}
|
||||
|
||||
export function defineScript(script: RedisLuaScriptConfig): typeof script & SHA1 {
|
||||
export function defineScript(script: RedisScriptConfig): typeof script & SHA1 {
|
||||
return {
|
||||
...script,
|
||||
SHA1: scriptSha1(script.SCRIPT)
|
||||
|
Reference in New Issue
Block a user