index.d.ts 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import * as ARRAPPEND from './ARRAPPEND';
  2. import * as ARRINDEX from './ARRINDEX';
  3. import * as ARRINSERT from './ARRINSERT';
  4. import * as ARRLEN from './ARRLEN';
  5. import * as ARRPOP from './ARRPOP';
  6. import * as ARRTRIM from './ARRTRIM';
  7. import * as DEBUG_MEMORY from './DEBUG_MEMORY';
  8. import * as DEL from './DEL';
  9. import * as FORGET from './FORGET';
  10. import * as GET from './GET';
  11. import * as MERGE from './MERGE';
  12. import * as MGET from './MGET';
  13. import * as MSET from './MSET';
  14. import * as NUMINCRBY from './NUMINCRBY';
  15. import * as NUMMULTBY from './NUMMULTBY';
  16. import * as OBJKEYS from './OBJKEYS';
  17. import * as OBJLEN from './OBJLEN';
  18. import * as RESP from './RESP';
  19. import * as SET from './SET';
  20. import * as STRAPPEND from './STRAPPEND';
  21. import * as STRLEN from './STRLEN';
  22. import * as TYPE from './TYPE';
  23. declare const _default: {
  24. ARRAPPEND: typeof ARRAPPEND;
  25. arrAppend: typeof ARRAPPEND;
  26. ARRINDEX: typeof ARRINDEX;
  27. arrIndex: typeof ARRINDEX;
  28. ARRINSERT: typeof ARRINSERT;
  29. arrInsert: typeof ARRINSERT;
  30. ARRLEN: typeof ARRLEN;
  31. arrLen: typeof ARRLEN;
  32. ARRPOP: typeof ARRPOP;
  33. arrPop: typeof ARRPOP;
  34. ARRTRIM: typeof ARRTRIM;
  35. arrTrim: typeof ARRTRIM;
  36. DEBUG_MEMORY: typeof DEBUG_MEMORY;
  37. debugMemory: typeof DEBUG_MEMORY;
  38. DEL: typeof DEL;
  39. del: typeof DEL;
  40. FORGET: typeof FORGET;
  41. forget: typeof FORGET;
  42. GET: typeof GET;
  43. get: typeof GET;
  44. MERGE: typeof MERGE;
  45. merge: typeof MERGE;
  46. MGET: typeof MGET;
  47. mGet: typeof MGET;
  48. MSET: typeof MSET;
  49. mSet: typeof MSET;
  50. NUMINCRBY: typeof NUMINCRBY;
  51. numIncrBy: typeof NUMINCRBY;
  52. NUMMULTBY: typeof NUMMULTBY;
  53. numMultBy: typeof NUMMULTBY;
  54. OBJKEYS: typeof OBJKEYS;
  55. objKeys: typeof OBJKEYS;
  56. OBJLEN: typeof OBJLEN;
  57. objLen: typeof OBJLEN;
  58. RESP: typeof RESP;
  59. resp: typeof RESP;
  60. SET: typeof SET;
  61. set: typeof SET;
  62. STRAPPEND: typeof STRAPPEND;
  63. strAppend: typeof STRAPPEND;
  64. STRLEN: typeof STRLEN;
  65. strLen: typeof STRLEN;
  66. TYPE: typeof TYPE;
  67. type: typeof TYPE;
  68. };
  69. export default _default;
  70. interface RedisJSONArray extends Array<RedisJSON> {
  71. }
  72. interface RedisJSONObject {
  73. [key: string]: RedisJSON;
  74. [key: number]: RedisJSON;
  75. }
  76. export type RedisJSON = null | boolean | number | string | Date | RedisJSONArray | RedisJSONObject;
  77. export declare function transformRedisJsonArgument(json: RedisJSON): string;
  78. export declare function transformRedisJsonReply(json: string): RedisJSON;
  79. export declare function transformRedisJsonNullReply(json: string | null): RedisJSON | null;
  80. export declare function transformNumbersReply(reply: string): number | Array<number>;