commands.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const commands_1 = require("../cluster/commands");
  4. const ACL_CAT = require("../commands/ACL_CAT");
  5. const ACL_DELUSER = require("../commands/ACL_DELUSER");
  6. const ACL_DRYRUN = require("../commands/ACL_DRYRUN");
  7. const ACL_GENPASS = require("../commands/ACL_GENPASS");
  8. const ACL_GETUSER = require("../commands/ACL_GETUSER");
  9. const ACL_LIST = require("../commands/ACL_LIST");
  10. const ACL_LOAD = require("../commands/ACL_LOAD");
  11. const ACL_LOG_RESET = require("../commands/ACL_LOG_RESET");
  12. const ACL_LOG = require("../commands/ACL_LOG");
  13. const ACL_SAVE = require("../commands/ACL_SAVE");
  14. const ACL_SETUSER = require("../commands/ACL_SETUSER");
  15. const ACL_USERS = require("../commands/ACL_USERS");
  16. const ACL_WHOAMI = require("../commands/ACL_WHOAMI");
  17. const ASKING = require("../commands/ASKING");
  18. const AUTH = require("../commands/AUTH");
  19. const BGREWRITEAOF = require("../commands/BGREWRITEAOF");
  20. const BGSAVE = require("../commands/BGSAVE");
  21. const CLIENT_CACHING = require("../commands/CLIENT_CACHING");
  22. const CLIENT_GETNAME = require("../commands/CLIENT_GETNAME");
  23. const CLIENT_GETREDIR = require("../commands/CLIENT_GETREDIR");
  24. const CLIENT_ID = require("../commands/CLIENT_ID");
  25. const CLIENT_KILL = require("../commands/CLIENT_KILL");
  26. const CLIENT_LIST = require("../commands/CLIENT_LIST");
  27. const CLIENT_NO_EVICT = require("../commands/CLIENT_NO-EVICT");
  28. const CLIENT_NO_TOUCH = require("../commands/CLIENT_NO-TOUCH");
  29. const CLIENT_PAUSE = require("../commands/CLIENT_PAUSE");
  30. const CLIENT_SETNAME = require("../commands/CLIENT_SETNAME");
  31. const CLIENT_TRACKING = require("../commands/CLIENT_TRACKING");
  32. const CLIENT_TRACKINGINFO = require("../commands/CLIENT_TRACKINGINFO");
  33. const CLIENT_UNPAUSE = require("../commands/CLIENT_UNPAUSE");
  34. const CLIENT_INFO = require("../commands/CLIENT_INFO");
  35. const CLUSTER_ADDSLOTS = require("../commands/CLUSTER_ADDSLOTS");
  36. const CLUSTER_ADDSLOTSRANGE = require("../commands/CLUSTER_ADDSLOTSRANGE");
  37. const CLUSTER_BUMPEPOCH = require("../commands/CLUSTER_BUMPEPOCH");
  38. const CLUSTER_COUNT_FAILURE_REPORTS = require("../commands/CLUSTER_COUNT-FAILURE-REPORTS");
  39. const CLUSTER_COUNTKEYSINSLOT = require("../commands/CLUSTER_COUNTKEYSINSLOT");
  40. const CLUSTER_DELSLOTS = require("../commands/CLUSTER_DELSLOTS");
  41. const CLUSTER_DELSLOTSRANGE = require("../commands/CLUSTER_DELSLOTSRANGE");
  42. const CLUSTER_FAILOVER = require("../commands/CLUSTER_FAILOVER");
  43. const CLUSTER_FLUSHSLOTS = require("../commands/CLUSTER_FLUSHSLOTS");
  44. const CLUSTER_FORGET = require("../commands/CLUSTER_FORGET");
  45. const CLUSTER_GETKEYSINSLOT = require("../commands/CLUSTER_GETKEYSINSLOT");
  46. const CLUSTER_INFO = require("../commands/CLUSTER_INFO");
  47. const CLUSTER_KEYSLOT = require("../commands/CLUSTER_KEYSLOT");
  48. const CLUSTER_LINKS = require("../commands/CLUSTER_LINKS");
  49. const CLUSTER_MEET = require("../commands/CLUSTER_MEET");
  50. const CLUSTER_MYID = require("../commands/CLUSTER_MYID");
  51. const CLUSTER_MYSHARDID = require("../commands/CLUSTER_MYSHARDID");
  52. const CLUSTER_NODES = require("../commands/CLUSTER_NODES");
  53. const CLUSTER_REPLICAS = require("../commands/CLUSTER_REPLICAS");
  54. const CLUSTER_REPLICATE = require("../commands/CLUSTER_REPLICATE");
  55. const CLUSTER_RESET = require("../commands/CLUSTER_RESET");
  56. const CLUSTER_SAVECONFIG = require("../commands/CLUSTER_SAVECONFIG");
  57. const CLUSTER_SET_CONFIG_EPOCH = require("../commands/CLUSTER_SET-CONFIG-EPOCH");
  58. const CLUSTER_SETSLOT = require("../commands/CLUSTER_SETSLOT");
  59. const CLUSTER_SLOTS = require("../commands/CLUSTER_SLOTS");
  60. const COMMAND_COUNT = require("../commands/COMMAND_COUNT");
  61. const COMMAND_GETKEYS = require("../commands/COMMAND_GETKEYS");
  62. const COMMAND_GETKEYSANDFLAGS = require("../commands/COMMAND_GETKEYSANDFLAGS");
  63. const COMMAND_INFO = require("../commands/COMMAND_INFO");
  64. const COMMAND_LIST = require("../commands/COMMAND_LIST");
  65. const COMMAND = require("../commands/COMMAND");
  66. const CONFIG_GET = require("../commands/CONFIG_GET");
  67. const CONFIG_RESETASTAT = require("../commands/CONFIG_RESETSTAT");
  68. const CONFIG_REWRITE = require("../commands/CONFIG_REWRITE");
  69. const CONFIG_SET = require("../commands/CONFIG_SET");
  70. const DBSIZE = require("../commands/DBSIZE");
  71. const DISCARD = require("../commands/DISCARD");
  72. const ECHO = require("../commands/ECHO");
  73. const FAILOVER = require("../commands/FAILOVER");
  74. const FLUSHALL = require("../commands/FLUSHALL");
  75. const FLUSHDB = require("../commands/FLUSHDB");
  76. const FUNCTION_DELETE = require("../commands/FUNCTION_DELETE");
  77. const FUNCTION_DUMP = require("../commands/FUNCTION_DUMP");
  78. const FUNCTION_FLUSH = require("../commands/FUNCTION_FLUSH");
  79. const FUNCTION_KILL = require("../commands/FUNCTION_KILL");
  80. const FUNCTION_LIST_WITHCODE = require("../commands/FUNCTION_LIST_WITHCODE");
  81. const FUNCTION_LIST = require("../commands/FUNCTION_LIST");
  82. const FUNCTION_LOAD = require("../commands/FUNCTION_LOAD");
  83. const FUNCTION_RESTORE = require("../commands/FUNCTION_RESTORE");
  84. const FUNCTION_STATS = require("../commands/FUNCTION_STATS");
  85. const HELLO = require("../commands/HELLO");
  86. const INFO = require("../commands/INFO");
  87. const KEYS = require("../commands/KEYS");
  88. const LASTSAVE = require("../commands/LASTSAVE");
  89. const LATENCY_DOCTOR = require("../commands/LATENCY_DOCTOR");
  90. const LATENCY_GRAPH = require("../commands/LATENCY_GRAPH");
  91. const LATENCY_HISTORY = require("../commands/LATENCY_HISTORY");
  92. const LATENCY_LATEST = require("../commands/LATENCY_LATEST");
  93. const LOLWUT = require("../commands/LOLWUT");
  94. const MEMORY_DOCTOR = require("../commands/MEMORY_DOCTOR");
  95. const MEMORY_MALLOC_STATS = require("../commands/MEMORY_MALLOC-STATS");
  96. const MEMORY_PURGE = require("../commands/MEMORY_PURGE");
  97. const MEMORY_STATS = require("../commands/MEMORY_STATS");
  98. const MEMORY_USAGE = require("../commands/MEMORY_USAGE");
  99. const MODULE_LIST = require("../commands/MODULE_LIST");
  100. const MODULE_LOAD = require("../commands/MODULE_LOAD");
  101. const MODULE_UNLOAD = require("../commands/MODULE_UNLOAD");
  102. const MOVE = require("../commands/MOVE");
  103. const PING = require("../commands/PING");
  104. const PUBSUB_CHANNELS = require("../commands/PUBSUB_CHANNELS");
  105. const PUBSUB_NUMPAT = require("../commands/PUBSUB_NUMPAT");
  106. const PUBSUB_NUMSUB = require("../commands/PUBSUB_NUMSUB");
  107. const PUBSUB_SHARDCHANNELS = require("../commands/PUBSUB_SHARDCHANNELS");
  108. const PUBSUB_SHARDNUMSUB = require("../commands/PUBSUB_SHARDNUMSUB");
  109. const RANDOMKEY = require("../commands/RANDOMKEY");
  110. const READONLY = require("../commands/READONLY");
  111. const READWRITE = require("../commands/READWRITE");
  112. const REPLICAOF = require("../commands/REPLICAOF");
  113. const RESTORE_ASKING = require("../commands/RESTORE-ASKING");
  114. const ROLE = require("../commands/ROLE");
  115. const SAVE = require("../commands/SAVE");
  116. const SCAN = require("../commands/SCAN");
  117. const SCRIPT_DEBUG = require("../commands/SCRIPT_DEBUG");
  118. const SCRIPT_EXISTS = require("../commands/SCRIPT_EXISTS");
  119. const SCRIPT_FLUSH = require("../commands/SCRIPT_FLUSH");
  120. const SCRIPT_KILL = require("../commands/SCRIPT_KILL");
  121. const SCRIPT_LOAD = require("../commands/SCRIPT_LOAD");
  122. const SHUTDOWN = require("../commands/SHUTDOWN");
  123. const SWAPDB = require("../commands/SWAPDB");
  124. const TIME = require("../commands/TIME");
  125. const UNWATCH = require("../commands/UNWATCH");
  126. const WAIT = require("../commands/WAIT");
  127. exports.default = {
  128. ...commands_1.default,
  129. ACL_CAT,
  130. aclCat: ACL_CAT,
  131. ACL_DELUSER,
  132. aclDelUser: ACL_DELUSER,
  133. ACL_DRYRUN,
  134. aclDryRun: ACL_DRYRUN,
  135. ACL_GENPASS,
  136. aclGenPass: ACL_GENPASS,
  137. ACL_GETUSER,
  138. aclGetUser: ACL_GETUSER,
  139. ACL_LIST,
  140. aclList: ACL_LIST,
  141. ACL_LOAD,
  142. aclLoad: ACL_LOAD,
  143. ACL_LOG_RESET,
  144. aclLogReset: ACL_LOG_RESET,
  145. ACL_LOG,
  146. aclLog: ACL_LOG,
  147. ACL_SAVE,
  148. aclSave: ACL_SAVE,
  149. ACL_SETUSER,
  150. aclSetUser: ACL_SETUSER,
  151. ACL_USERS,
  152. aclUsers: ACL_USERS,
  153. ACL_WHOAMI,
  154. aclWhoAmI: ACL_WHOAMI,
  155. ASKING,
  156. asking: ASKING,
  157. AUTH,
  158. auth: AUTH,
  159. BGREWRITEAOF,
  160. bgRewriteAof: BGREWRITEAOF,
  161. BGSAVE,
  162. bgSave: BGSAVE,
  163. CLIENT_CACHING,
  164. clientCaching: CLIENT_CACHING,
  165. CLIENT_GETNAME,
  166. clientGetName: CLIENT_GETNAME,
  167. CLIENT_GETREDIR,
  168. clientGetRedir: CLIENT_GETREDIR,
  169. CLIENT_ID,
  170. clientId: CLIENT_ID,
  171. CLIENT_KILL,
  172. clientKill: CLIENT_KILL,
  173. 'CLIENT_NO-EVICT': CLIENT_NO_EVICT,
  174. clientNoEvict: CLIENT_NO_EVICT,
  175. 'CLIENT_NO-TOUCH': CLIENT_NO_TOUCH,
  176. clientNoTouch: CLIENT_NO_TOUCH,
  177. CLIENT_LIST,
  178. clientList: CLIENT_LIST,
  179. CLIENT_PAUSE,
  180. clientPause: CLIENT_PAUSE,
  181. CLIENT_SETNAME,
  182. clientSetName: CLIENT_SETNAME,
  183. CLIENT_TRACKING,
  184. clientTracking: CLIENT_TRACKING,
  185. CLIENT_TRACKINGINFO,
  186. clientTrackingInfo: CLIENT_TRACKINGINFO,
  187. CLIENT_UNPAUSE,
  188. clientUnpause: CLIENT_UNPAUSE,
  189. CLIENT_INFO,
  190. clientInfo: CLIENT_INFO,
  191. CLUSTER_ADDSLOTS,
  192. clusterAddSlots: CLUSTER_ADDSLOTS,
  193. CLUSTER_ADDSLOTSRANGE,
  194. clusterAddSlotsRange: CLUSTER_ADDSLOTSRANGE,
  195. CLUSTER_BUMPEPOCH,
  196. clusterBumpEpoch: CLUSTER_BUMPEPOCH,
  197. CLUSTER_COUNT_FAILURE_REPORTS,
  198. clusterCountFailureReports: CLUSTER_COUNT_FAILURE_REPORTS,
  199. CLUSTER_COUNTKEYSINSLOT,
  200. clusterCountKeysInSlot: CLUSTER_COUNTKEYSINSLOT,
  201. CLUSTER_DELSLOTS,
  202. clusterDelSlots: CLUSTER_DELSLOTS,
  203. CLUSTER_DELSLOTSRANGE,
  204. clusterDelSlotsRange: CLUSTER_DELSLOTSRANGE,
  205. CLUSTER_FAILOVER,
  206. clusterFailover: CLUSTER_FAILOVER,
  207. CLUSTER_FLUSHSLOTS,
  208. clusterFlushSlots: CLUSTER_FLUSHSLOTS,
  209. CLUSTER_FORGET,
  210. clusterForget: CLUSTER_FORGET,
  211. CLUSTER_GETKEYSINSLOT,
  212. clusterGetKeysInSlot: CLUSTER_GETKEYSINSLOT,
  213. CLUSTER_INFO,
  214. clusterInfo: CLUSTER_INFO,
  215. CLUSTER_KEYSLOT,
  216. clusterKeySlot: CLUSTER_KEYSLOT,
  217. CLUSTER_LINKS,
  218. clusterLinks: CLUSTER_LINKS,
  219. CLUSTER_MEET,
  220. clusterMeet: CLUSTER_MEET,
  221. CLUSTER_MYID,
  222. clusterMyId: CLUSTER_MYID,
  223. CLUSTER_MYSHARDID,
  224. clusterMyShardId: CLUSTER_MYSHARDID,
  225. CLUSTER_NODES,
  226. clusterNodes: CLUSTER_NODES,
  227. CLUSTER_REPLICAS,
  228. clusterReplicas: CLUSTER_REPLICAS,
  229. CLUSTER_REPLICATE,
  230. clusterReplicate: CLUSTER_REPLICATE,
  231. CLUSTER_RESET,
  232. clusterReset: CLUSTER_RESET,
  233. CLUSTER_SAVECONFIG,
  234. clusterSaveConfig: CLUSTER_SAVECONFIG,
  235. CLUSTER_SET_CONFIG_EPOCH,
  236. clusterSetConfigEpoch: CLUSTER_SET_CONFIG_EPOCH,
  237. CLUSTER_SETSLOT,
  238. clusterSetSlot: CLUSTER_SETSLOT,
  239. CLUSTER_SLOTS,
  240. clusterSlots: CLUSTER_SLOTS,
  241. COMMAND_COUNT,
  242. commandCount: COMMAND_COUNT,
  243. COMMAND_GETKEYS,
  244. commandGetKeys: COMMAND_GETKEYS,
  245. COMMAND_GETKEYSANDFLAGS,
  246. commandGetKeysAndFlags: COMMAND_GETKEYSANDFLAGS,
  247. COMMAND_INFO,
  248. commandInfo: COMMAND_INFO,
  249. COMMAND_LIST,
  250. commandList: COMMAND_LIST,
  251. COMMAND,
  252. command: COMMAND,
  253. CONFIG_GET,
  254. configGet: CONFIG_GET,
  255. CONFIG_RESETASTAT,
  256. configResetStat: CONFIG_RESETASTAT,
  257. CONFIG_REWRITE,
  258. configRewrite: CONFIG_REWRITE,
  259. CONFIG_SET,
  260. configSet: CONFIG_SET,
  261. DBSIZE,
  262. dbSize: DBSIZE,
  263. DISCARD,
  264. discard: DISCARD,
  265. ECHO,
  266. echo: ECHO,
  267. FAILOVER,
  268. failover: FAILOVER,
  269. FLUSHALL,
  270. flushAll: FLUSHALL,
  271. FLUSHDB,
  272. flushDb: FLUSHDB,
  273. FUNCTION_DELETE,
  274. functionDelete: FUNCTION_DELETE,
  275. FUNCTION_DUMP,
  276. functionDump: FUNCTION_DUMP,
  277. FUNCTION_FLUSH,
  278. functionFlush: FUNCTION_FLUSH,
  279. FUNCTION_KILL,
  280. functionKill: FUNCTION_KILL,
  281. FUNCTION_LIST_WITHCODE,
  282. functionListWithCode: FUNCTION_LIST_WITHCODE,
  283. FUNCTION_LIST,
  284. functionList: FUNCTION_LIST,
  285. FUNCTION_LOAD,
  286. functionLoad: FUNCTION_LOAD,
  287. FUNCTION_RESTORE,
  288. functionRestore: FUNCTION_RESTORE,
  289. FUNCTION_STATS,
  290. functionStats: FUNCTION_STATS,
  291. HELLO,
  292. hello: HELLO,
  293. INFO,
  294. info: INFO,
  295. KEYS,
  296. keys: KEYS,
  297. LASTSAVE,
  298. lastSave: LASTSAVE,
  299. LATENCY_DOCTOR,
  300. latencyDoctor: LATENCY_DOCTOR,
  301. LATENCY_GRAPH,
  302. latencyGraph: LATENCY_GRAPH,
  303. LATENCY_HISTORY,
  304. latencyHistory: LATENCY_HISTORY,
  305. LATENCY_LATEST,
  306. latencyLatest: LATENCY_LATEST,
  307. LOLWUT,
  308. lolwut: LOLWUT,
  309. MEMORY_DOCTOR,
  310. memoryDoctor: MEMORY_DOCTOR,
  311. 'MEMORY_MALLOC-STATS': MEMORY_MALLOC_STATS,
  312. memoryMallocStats: MEMORY_MALLOC_STATS,
  313. MEMORY_PURGE,
  314. memoryPurge: MEMORY_PURGE,
  315. MEMORY_STATS,
  316. memoryStats: MEMORY_STATS,
  317. MEMORY_USAGE,
  318. memoryUsage: MEMORY_USAGE,
  319. MODULE_LIST,
  320. moduleList: MODULE_LIST,
  321. MODULE_LOAD,
  322. moduleLoad: MODULE_LOAD,
  323. MODULE_UNLOAD,
  324. moduleUnload: MODULE_UNLOAD,
  325. MOVE,
  326. move: MOVE,
  327. PING,
  328. ping: PING,
  329. PUBSUB_CHANNELS,
  330. pubSubChannels: PUBSUB_CHANNELS,
  331. PUBSUB_NUMPAT,
  332. pubSubNumPat: PUBSUB_NUMPAT,
  333. PUBSUB_NUMSUB,
  334. pubSubNumSub: PUBSUB_NUMSUB,
  335. PUBSUB_SHARDCHANNELS,
  336. pubSubShardChannels: PUBSUB_SHARDCHANNELS,
  337. PUBSUB_SHARDNUMSUB,
  338. pubSubShardNumSub: PUBSUB_SHARDNUMSUB,
  339. RANDOMKEY,
  340. randomKey: RANDOMKEY,
  341. READONLY,
  342. readonly: READONLY,
  343. READWRITE,
  344. readwrite: READWRITE,
  345. REPLICAOF,
  346. replicaOf: REPLICAOF,
  347. 'RESTORE-ASKING': RESTORE_ASKING,
  348. restoreAsking: RESTORE_ASKING,
  349. ROLE,
  350. role: ROLE,
  351. SAVE,
  352. save: SAVE,
  353. SCAN,
  354. scan: SCAN,
  355. SCRIPT_DEBUG,
  356. scriptDebug: SCRIPT_DEBUG,
  357. SCRIPT_EXISTS,
  358. scriptExists: SCRIPT_EXISTS,
  359. SCRIPT_FLUSH,
  360. scriptFlush: SCRIPT_FLUSH,
  361. SCRIPT_KILL,
  362. scriptKill: SCRIPT_KILL,
  363. SCRIPT_LOAD,
  364. scriptLoad: SCRIPT_LOAD,
  365. SHUTDOWN,
  366. shutdown: SHUTDOWN,
  367. SWAPDB,
  368. swapDb: SWAPDB,
  369. TIME,
  370. time: TIME,
  371. UNWATCH,
  372. unwatch: UNWATCH,
  373. WAIT,
  374. wait: WAIT
  375. };