@redis/bloom 1.2.0 → 2.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/lib/commands/bloom/ADD.d.ts +11 -0
  2. package/dist/lib/commands/bloom/ADD.js +11 -0
  3. package/dist/lib/commands/bloom/CARD.d.ts +8 -0
  4. package/dist/lib/commands/bloom/CARD.js +10 -0
  5. package/dist/lib/commands/bloom/EXISTS.d.ts +11 -0
  6. package/dist/lib/commands/bloom/EXISTS.js +11 -0
  7. package/dist/lib/commands/bloom/INFO.d.ts +8 -0
  8. package/dist/lib/commands/bloom/INFO.js +11 -0
  9. package/dist/lib/commands/bloom/INSERT.d.ts +19 -0
  10. package/dist/lib/commands/bloom/INSERT.js +29 -0
  11. package/dist/lib/commands/bloom/LOADCHUNK.d.ts +8 -0
  12. package/dist/lib/commands/bloom/LOADCHUNK.js +10 -0
  13. package/dist/lib/commands/bloom/MADD.d.ts +12 -0
  14. package/dist/lib/commands/bloom/MADD.js +12 -0
  15. package/dist/lib/commands/bloom/MEXISTS.d.ts +12 -0
  16. package/dist/lib/commands/bloom/MEXISTS.js +12 -0
  17. package/dist/lib/commands/bloom/RESERVE.d.ts +12 -0
  18. package/dist/lib/commands/bloom/RESERVE.js +17 -0
  19. package/dist/lib/commands/bloom/SCANDUMP.d.ts +11 -0
  20. package/dist/lib/commands/bloom/SCANDUMP.js +15 -0
  21. package/dist/lib/commands/bloom/index.d.ts +159 -0
  22. package/dist/lib/commands/bloom/index.js +37 -0
  23. package/dist/lib/commands/count-min-sketch/INCRBY.d.ts +12 -0
  24. package/dist/lib/commands/count-min-sketch/INCRBY.js +22 -0
  25. package/dist/lib/commands/count-min-sketch/INFO.d.ts +29 -0
  26. package/dist/lib/commands/count-min-sketch/INFO.js +17 -0
  27. package/dist/lib/commands/count-min-sketch/INITBYDIM.d.ts +8 -0
  28. package/dist/lib/commands/count-min-sketch/INITBYDIM.js +10 -0
  29. package/dist/lib/commands/count-min-sketch/INITBYPROB.d.ts +8 -0
  30. package/dist/lib/commands/count-min-sketch/INITBYPROB.js +10 -0
  31. package/dist/lib/commands/count-min-sketch/MERGE.d.ts +13 -0
  32. package/dist/lib/commands/count-min-sketch/MERGE.js +25 -0
  33. package/dist/lib/commands/count-min-sketch/QUERY.d.ts +9 -0
  34. package/dist/lib/commands/count-min-sketch/QUERY.js +11 -0
  35. package/dist/lib/commands/count-min-sketch/index.d.ts +89 -0
  36. package/dist/lib/commands/count-min-sketch/index.js +25 -0
  37. package/dist/lib/commands/cuckoo/ADD.d.ts +11 -0
  38. package/dist/lib/commands/cuckoo/ADD.js +11 -0
  39. package/dist/lib/commands/cuckoo/ADDNX.d.ts +11 -0
  40. package/dist/lib/commands/cuckoo/ADDNX.js +11 -0
  41. package/dist/lib/commands/cuckoo/COUNT.d.ts +8 -0
  42. package/dist/lib/commands/cuckoo/COUNT.js +10 -0
  43. package/dist/lib/commands/cuckoo/DEL.d.ts +11 -0
  44. package/dist/lib/commands/cuckoo/DEL.js +11 -0
  45. package/dist/lib/commands/cuckoo/EXISTS.d.ts +11 -0
  46. package/dist/lib/commands/cuckoo/EXISTS.js +11 -0
  47. package/dist/lib/commands/cuckoo/INFO.d.ts +8 -0
  48. package/dist/lib/commands/cuckoo/INFO.js +51 -0
  49. package/dist/lib/commands/cuckoo/INSERT.d.ts +17 -0
  50. package/dist/lib/commands/cuckoo/INSERT.js +22 -0
  51. package/dist/lib/commands/cuckoo/INSERTNX.d.ts +10 -0
  52. package/dist/lib/commands/cuckoo/INSERTNX.js +32 -0
  53. package/dist/lib/commands/cuckoo/LOADCHUNK.d.ts +8 -0
  54. package/dist/lib/commands/cuckoo/LOADCHUNK.js +10 -0
  55. package/dist/lib/commands/cuckoo/RESERVE.d.ts +13 -0
  56. package/dist/lib/commands/cuckoo/RESERVE.js +20 -0
  57. package/dist/lib/commands/cuckoo/SCANDUMP.d.ts +11 -0
  58. package/dist/lib/commands/cuckoo/SCANDUMP.js +15 -0
  59. package/dist/lib/commands/cuckoo/index.d.ts +177 -0
  60. package/dist/lib/commands/cuckoo/index.js +40 -0
  61. package/dist/lib/commands/index.d.ts +763 -0
  62. package/dist/lib/commands/index.js +17 -0
  63. package/dist/lib/commands/t-digest/ADD.d.ts +8 -0
  64. package/dist/lib/commands/t-digest/ADD.js +14 -0
  65. package/dist/lib/commands/t-digest/BYRANK.d.ts +12 -0
  66. package/dist/lib/commands/t-digest/BYRANK.js +18 -0
  67. package/dist/lib/commands/t-digest/BYREVRANK.d.ts +10 -0
  68. package/dist/lib/commands/t-digest/BYREVRANK.js +32 -0
  69. package/dist/lib/commands/t-digest/CDF.d.ts +11 -0
  70. package/dist/lib/commands/t-digest/CDF.js +15 -0
  71. package/dist/lib/commands/t-digest/CREATE.d.ts +11 -0
  72. package/dist/lib/commands/t-digest/CREATE.js +14 -0
  73. package/dist/lib/commands/t-digest/INFO.d.ts +8 -0
  74. package/dist/lib/commands/t-digest/INFO.js +47 -0
  75. package/dist/lib/commands/t-digest/MAX.d.ts +11 -0
  76. package/dist/lib/commands/t-digest/MAX.js +11 -0
  77. package/dist/lib/commands/t-digest/MERGE.d.ts +13 -0
  78. package/dist/lib/commands/t-digest/MERGE.js +18 -0
  79. package/dist/lib/commands/t-digest/MIN.d.ts +11 -0
  80. package/dist/lib/commands/t-digest/MIN.js +11 -0
  81. package/dist/lib/commands/t-digest/QUANTILE.d.ts +11 -0
  82. package/dist/lib/commands/t-digest/QUANTILE.js +15 -0
  83. package/dist/lib/commands/t-digest/RANK.d.ts +9 -0
  84. package/dist/lib/commands/t-digest/RANK.js +17 -0
  85. package/dist/lib/commands/t-digest/RESET.d.ts +8 -0
  86. package/dist/lib/commands/t-digest/RESET.js +10 -0
  87. package/dist/lib/commands/t-digest/REVRANK.d.ts +7 -0
  88. package/dist/lib/commands/t-digest/REVRANK.js +32 -0
  89. package/dist/lib/commands/t-digest/TRIMMED_MEAN.d.ts +11 -0
  90. package/dist/lib/commands/t-digest/TRIMMED_MEAN.js +16 -0
  91. package/dist/lib/commands/t-digest/index.d.ts +213 -0
  92. package/dist/lib/commands/t-digest/index.js +49 -0
  93. package/dist/lib/commands/top-k/ADD.d.ts +9 -0
  94. package/dist/lib/commands/top-k/ADD.js +11 -0
  95. package/dist/lib/commands/top-k/COUNT.d.ts +9 -0
  96. package/dist/lib/commands/top-k/COUNT.js +11 -0
  97. package/dist/lib/commands/top-k/INCRBY.d.ts +12 -0
  98. package/dist/lib/commands/top-k/INCRBY.js +22 -0
  99. package/dist/lib/commands/top-k/INFO.d.ts +34 -0
  100. package/dist/lib/commands/top-k/INFO.js +18 -0
  101. package/dist/lib/commands/top-k/LIST.d.ts +8 -0
  102. package/dist/lib/commands/top-k/LIST.js +10 -0
  103. package/dist/lib/commands/top-k/LIST_WITHCOUNT.d.ts +11 -0
  104. package/dist/lib/commands/top-k/LIST_WITHCOUNT.js +19 -0
  105. package/dist/lib/commands/top-k/QUERY.d.ts +12 -0
  106. package/dist/lib/commands/top-k/QUERY.js +11 -0
  107. package/dist/lib/commands/top-k/RESERVE.d.ts +13 -0
  108. package/dist/lib/commands/top-k/RESERVE.js +14 -0
  109. package/dist/lib/commands/top-k/index.d.ts +127 -0
  110. package/dist/lib/commands/top-k/index.js +31 -0
  111. package/dist/{index.js → lib/index.js} +4 -1
  112. package/package.json +22 -18
  113. package/dist/commands/bloom/ADD.d.ts +0 -3
  114. package/dist/commands/bloom/ADD.js +0 -10
  115. package/dist/commands/bloom/CARD.d.ts +0 -4
  116. package/dist/commands/bloom/CARD.js +0 -9
  117. package/dist/commands/bloom/EXISTS.d.ts +0 -4
  118. package/dist/commands/bloom/EXISTS.js +0 -11
  119. package/dist/commands/bloom/INFO.d.ts +0 -23
  120. package/dist/commands/bloom/INFO.js +0 -19
  121. package/dist/commands/bloom/INSERT.d.ts +0 -11
  122. package/dist/commands/bloom/INSERT.js +0 -28
  123. package/dist/commands/bloom/LOADCHUNK.d.ts +0 -4
  124. package/dist/commands/bloom/LOADCHUNK.js +0 -8
  125. package/dist/commands/bloom/MADD.d.ts +0 -3
  126. package/dist/commands/bloom/MADD.js +0 -10
  127. package/dist/commands/bloom/MEXISTS.d.ts +0 -4
  128. package/dist/commands/bloom/MEXISTS.js +0 -11
  129. package/dist/commands/bloom/RESERVE.d.ts +0 -8
  130. package/dist/commands/bloom/RESERVE.js +0 -15
  131. package/dist/commands/bloom/SCANDUMP.d.ts +0 -13
  132. package/dist/commands/bloom/SCANDUMP.js +0 -16
  133. package/dist/commands/bloom/index.d.ts +0 -33
  134. package/dist/commands/bloom/index.js +0 -34
  135. package/dist/commands/count-min-sketch/INCRBY.d.ts +0 -8
  136. package/dist/commands/count-min-sketch/INCRBY.js +0 -20
  137. package/dist/commands/count-min-sketch/INFO.d.ts +0 -17
  138. package/dist/commands/count-min-sketch/INFO.js +0 -17
  139. package/dist/commands/count-min-sketch/INITBYDIM.d.ts +0 -3
  140. package/dist/commands/count-min-sketch/INITBYDIM.js +0 -8
  141. package/dist/commands/count-min-sketch/INITBYPROB.d.ts +0 -3
  142. package/dist/commands/count-min-sketch/INITBYPROB.js +0 -8
  143. package/dist/commands/count-min-sketch/MERGE.d.ts +0 -9
  144. package/dist/commands/count-min-sketch/MERGE.js +0 -28
  145. package/dist/commands/count-min-sketch/QUERY.d.ts +0 -5
  146. package/dist/commands/count-min-sketch/QUERY.js +0 -10
  147. package/dist/commands/count-min-sketch/index.d.ts +0 -21
  148. package/dist/commands/count-min-sketch/index.js +0 -22
  149. package/dist/commands/cuckoo/ADD.d.ts +0 -3
  150. package/dist/commands/cuckoo/ADD.js +0 -10
  151. package/dist/commands/cuckoo/ADDNX.d.ts +0 -3
  152. package/dist/commands/cuckoo/ADDNX.js +0 -10
  153. package/dist/commands/cuckoo/COUNT.d.ts +0 -3
  154. package/dist/commands/cuckoo/COUNT.js +0 -8
  155. package/dist/commands/cuckoo/DEL.d.ts +0 -3
  156. package/dist/commands/cuckoo/DEL.js +0 -10
  157. package/dist/commands/cuckoo/EXISTS.d.ts +0 -4
  158. package/dist/commands/cuckoo/EXISTS.js +0 -11
  159. package/dist/commands/cuckoo/INFO.d.ts +0 -32
  160. package/dist/commands/cuckoo/INFO.js +0 -22
  161. package/dist/commands/cuckoo/INSERT.d.ts +0 -5
  162. package/dist/commands/cuckoo/INSERT.js +0 -11
  163. package/dist/commands/cuckoo/INSERTNX.d.ts +0 -5
  164. package/dist/commands/cuckoo/INSERTNX.js +0 -11
  165. package/dist/commands/cuckoo/LOADCHUNK.d.ts +0 -4
  166. package/dist/commands/cuckoo/LOADCHUNK.js +0 -8
  167. package/dist/commands/cuckoo/RESERVE.d.ts +0 -9
  168. package/dist/commands/cuckoo/RESERVE.js +0 -18
  169. package/dist/commands/cuckoo/SCANDUMP.d.ts +0 -12
  170. package/dist/commands/cuckoo/SCANDUMP.js +0 -15
  171. package/dist/commands/cuckoo/index.d.ts +0 -42
  172. package/dist/commands/cuckoo/index.js +0 -51
  173. package/dist/commands/index.d.ts +0 -111
  174. package/dist/commands/index.js +0 -14
  175. package/dist/commands/t-digest/ADD.d.ts +0 -4
  176. package/dist/commands/t-digest/ADD.js +0 -12
  177. package/dist/commands/t-digest/BYRANK.d.ts +0 -5
  178. package/dist/commands/t-digest/BYRANK.js +0 -15
  179. package/dist/commands/t-digest/BYREVRANK.d.ts +0 -5
  180. package/dist/commands/t-digest/BYREVRANK.js +0 -15
  181. package/dist/commands/t-digest/CDF.d.ts +0 -5
  182. package/dist/commands/t-digest/CDF.js +0 -15
  183. package/dist/commands/t-digest/CREATE.d.ts +0 -5
  184. package/dist/commands/t-digest/CREATE.js +0 -9
  185. package/dist/commands/t-digest/INFO.d.ts +0 -31
  186. package/dist/commands/t-digest/INFO.js +0 -24
  187. package/dist/commands/t-digest/MAX.d.ts +0 -5
  188. package/dist/commands/t-digest/MAX.js +0 -14
  189. package/dist/commands/t-digest/MERGE.d.ts +0 -9
  190. package/dist/commands/t-digest/MERGE.js +0 -15
  191. package/dist/commands/t-digest/MIN.d.ts +0 -5
  192. package/dist/commands/t-digest/MIN.js +0 -14
  193. package/dist/commands/t-digest/QUANTILE.d.ts +0 -5
  194. package/dist/commands/t-digest/QUANTILE.js +0 -18
  195. package/dist/commands/t-digest/RANK.d.ts +0 -5
  196. package/dist/commands/t-digest/RANK.js +0 -13
  197. package/dist/commands/t-digest/RESET.d.ts +0 -4
  198. package/dist/commands/t-digest/RESET.js +0 -8
  199. package/dist/commands/t-digest/REVRANK.d.ts +0 -5
  200. package/dist/commands/t-digest/REVRANK.js +0 -13
  201. package/dist/commands/t-digest/TRIMMED_MEAN.d.ts +0 -5
  202. package/dist/commands/t-digest/TRIMMED_MEAN.js +0 -16
  203. package/dist/commands/t-digest/index.d.ts +0 -52
  204. package/dist/commands/t-digest/index.js +0 -71
  205. package/dist/commands/top-k/ADD.d.ts +0 -4
  206. package/dist/commands/top-k/ADD.js +0 -9
  207. package/dist/commands/top-k/COUNT.d.ts +0 -5
  208. package/dist/commands/top-k/COUNT.js +0 -10
  209. package/dist/commands/top-k/INCRBY.d.ts +0 -8
  210. package/dist/commands/top-k/INCRBY.js +0 -20
  211. package/dist/commands/top-k/INFO.d.ts +0 -20
  212. package/dist/commands/top-k/INFO.js +0 -18
  213. package/dist/commands/top-k/LIST.d.ts +0 -4
  214. package/dist/commands/top-k/LIST.js +0 -9
  215. package/dist/commands/top-k/LIST_WITHCOUNT.d.ts +0 -10
  216. package/dist/commands/top-k/LIST_WITHCOUNT.js +0 -20
  217. package/dist/commands/top-k/QUERY.d.ts +0 -5
  218. package/dist/commands/top-k/QUERY.js +0 -10
  219. package/dist/commands/top-k/RESERVE.d.ts +0 -10
  220. package/dist/commands/top-k/RESERVE.js +0 -13
  221. package/dist/commands/top-k/index.d.ts +0 -27
  222. package/dist/commands/top-k/index.js +0 -28
  223. /package/dist/{index.d.ts → lib/index.d.ts} +0 -0
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: false,
6
+ transformArguments(destination, source) {
7
+ let args = ['CMS.MERGE', destination, source.length.toString()];
8
+ if (isPlainSketches(source)) {
9
+ args = args.concat(source);
10
+ }
11
+ else {
12
+ const { length } = args;
13
+ args[length + source.length] = 'WEIGHTS';
14
+ for (let i = 0; i < source.length; i++) {
15
+ args[length + i] = source[i].name;
16
+ args[length + source.length + i + 1] = source[i].weight.toString();
17
+ }
18
+ }
19
+ return args;
20
+ },
21
+ transformReply: undefined
22
+ };
23
+ function isPlainSketches(src) {
24
+ return typeof src[0] === 'string' || src[0] instanceof Buffer;
25
+ }
@@ -0,0 +1,9 @@
1
+ import { ArrayReply, NumberReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
3
+ declare const _default: {
4
+ readonly FIRST_KEY_INDEX: 1;
5
+ readonly IS_READ_ONLY: true;
6
+ readonly transformArguments: (this: void, key: RedisArgument, items: RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
7
+ readonly transformReply: () => ArrayReply<NumberReply>;
8
+ };
9
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
+ exports.default = {
5
+ FIRST_KEY_INDEX: 1,
6
+ IS_READ_ONLY: true,
7
+ transformArguments(key, items) {
8
+ return (0, generic_transformers_1.pushVariadicArguments)(['CMS.QUERY', key], items);
9
+ },
10
+ transformReply: undefined
11
+ };
@@ -0,0 +1,89 @@
1
+ declare const _default: {
2
+ readonly INCRBY: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("./INCRBY").BfIncrByItem | import("./INCRBY").BfIncrByItem[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
6
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
7
+ };
8
+ readonly incrBy: {
9
+ readonly FIRST_KEY_INDEX: 1;
10
+ readonly IS_READ_ONLY: false;
11
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("./INCRBY").BfIncrByItem | import("./INCRBY").BfIncrByItem[]) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
12
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
13
+ };
14
+ readonly INFO: {
15
+ readonly FIRST_KEY_INDEX: 1;
16
+ readonly IS_READ_ONLY: true;
17
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
18
+ readonly transformReply: {
19
+ readonly 2: (reply: [import("@redis/client/dist/lib/RESP/types").BlobStringReply<"width">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<"depth">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<"count">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>]) => {
20
+ width: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
21
+ depth: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
22
+ count: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
23
+ };
24
+ readonly 3: () => import("./INFO").BfInfoReply;
25
+ };
26
+ };
27
+ readonly info: {
28
+ readonly FIRST_KEY_INDEX: 1;
29
+ readonly IS_READ_ONLY: true;
30
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
31
+ readonly transformReply: {
32
+ readonly 2: (reply: [import("@redis/client/dist/lib/RESP/types").BlobStringReply<"width">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<"depth">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<"count">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>]) => {
33
+ width: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
34
+ depth: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
35
+ count: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
36
+ };
37
+ readonly 3: () => import("./INFO").BfInfoReply;
38
+ };
39
+ };
40
+ readonly INITBYDIM: {
41
+ readonly FIRST_KEY_INDEX: 1;
42
+ readonly IS_READ_ONLY: false;
43
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, width: number, depth: number) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
44
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
45
+ };
46
+ readonly initByDim: {
47
+ readonly FIRST_KEY_INDEX: 1;
48
+ readonly IS_READ_ONLY: false;
49
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, width: number, depth: number) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
50
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
51
+ };
52
+ readonly INITBYPROB: {
53
+ readonly FIRST_KEY_INDEX: 1;
54
+ readonly IS_READ_ONLY: false;
55
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, error: number, probability: number) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
56
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
57
+ };
58
+ readonly initByProb: {
59
+ readonly FIRST_KEY_INDEX: 1;
60
+ readonly IS_READ_ONLY: false;
61
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, error: number, probability: number) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
62
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
63
+ };
64
+ readonly MERGE: {
65
+ readonly FIRST_KEY_INDEX: 1;
66
+ readonly IS_READ_ONLY: false;
67
+ readonly transformArguments: (this: void, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("./MERGE").BfMergeSketches) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
68
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
69
+ };
70
+ readonly merge: {
71
+ readonly FIRST_KEY_INDEX: 1;
72
+ readonly IS_READ_ONLY: false;
73
+ readonly transformArguments: (this: void, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("./MERGE").BfMergeSketches) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
74
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
75
+ };
76
+ readonly QUERY: {
77
+ readonly FIRST_KEY_INDEX: 1;
78
+ readonly IS_READ_ONLY: true;
79
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
80
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
81
+ };
82
+ readonly query: {
83
+ readonly FIRST_KEY_INDEX: 1;
84
+ readonly IS_READ_ONLY: true;
85
+ readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
86
+ readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
87
+ };
88
+ };
89
+ export default _default;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const INCRBY_1 = __importDefault(require("./INCRBY"));
7
+ const INFO_1 = __importDefault(require("./INFO"));
8
+ const INITBYDIM_1 = __importDefault(require("./INITBYDIM"));
9
+ const INITBYPROB_1 = __importDefault(require("./INITBYPROB"));
10
+ const MERGE_1 = __importDefault(require("./MERGE"));
11
+ const QUERY_1 = __importDefault(require("./QUERY"));
12
+ exports.default = {
13
+ INCRBY: INCRBY_1.default,
14
+ incrBy: INCRBY_1.default,
15
+ INFO: INFO_1.default,
16
+ info: INFO_1.default,
17
+ INITBYDIM: INITBYDIM_1.default,
18
+ initByDim: INITBYDIM_1.default,
19
+ INITBYPROB: INITBYPROB_1.default,
20
+ initByProb: INITBYPROB_1.default,
21
+ MERGE: MERGE_1.default,
22
+ merge: MERGE_1.default,
23
+ QUERY: QUERY_1.default,
24
+ query: QUERY_1.default
25
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: RedisArgument, item: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
+ exports.default = {
5
+ FIRST_KEY_INDEX: 1,
6
+ IS_READ_ONLY: false,
7
+ transformArguments(key, item) {
8
+ return ['CF.ADD', key, item];
9
+ },
10
+ transformReply: generic_transformers_1.transformBooleanReply
11
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: RedisArgument, item: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
+ exports.default = {
5
+ FIRST_KEY_INDEX: 1,
6
+ IS_READ_ONLY: false,
7
+ transformArguments(key, item) {
8
+ return ['CF.ADDNX', key, item];
9
+ },
10
+ transformReply: generic_transformers_1.transformBooleanReply
11
+ };
@@ -0,0 +1,8 @@
1
+ import { RedisArgument, NumberReply } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: true;
5
+ readonly transformArguments: (this: void, key: RedisArgument, item: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: () => NumberReply;
7
+ };
8
+ export default _default;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: true,
6
+ transformArguments(key, item) {
7
+ return ['CF.COUNT', key, item];
8
+ },
9
+ transformReply: undefined
10
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: RedisArgument, item: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
+ exports.default = {
5
+ FIRST_KEY_INDEX: 1,
6
+ IS_READ_ONLY: false,
7
+ transformArguments(key, item) {
8
+ return ['CF.DEL', key, item];
9
+ },
10
+ transformReply: generic_transformers_1.transformBooleanReply
11
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: RedisArgument, item: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: {
7
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
8
+ 3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
+ exports.default = {
5
+ FIRST_KEY_INDEX: 1,
6
+ IS_READ_ONLY: false,
7
+ transformArguments(key, item) {
8
+ return ['CF.EXISTS', key, item];
9
+ },
10
+ transformReply: generic_transformers_1.transformBooleanReply
11
+ };
@@ -0,0 +1,8 @@
1
+ import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: true;
5
+ readonly transformArguments: (this: void, key: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: () => any;
7
+ };
8
+ export default _default;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: true,
6
+ transformArguments(key) {
7
+ return ['CF.INFO', key];
8
+ },
9
+ // TODO
10
+ // export type InfoRawReply = [
11
+ // _: string,
12
+ // size: number,
13
+ // _: string,
14
+ // numberOfBuckets: number,
15
+ // _: string,
16
+ // numberOfFilters: number,
17
+ // _: string,
18
+ // numberOfInsertedItems: number,
19
+ // _: string,
20
+ // numberOfDeletedItems: number,
21
+ // _: string,
22
+ // bucketSize: number,
23
+ // _: string,
24
+ // expansionRate: number,
25
+ // _: string,
26
+ // maxIteration: number
27
+ // ];
28
+ // export interface InfoReply {
29
+ // size: number;
30
+ // numberOfBuckets: number;
31
+ // numberOfFilters: number;
32
+ // numberOfInsertedItems: number;
33
+ // numberOfDeletedItems: number;
34
+ // bucketSize: number;
35
+ // expansionRate: number;
36
+ // maxIteration: number;
37
+ // }
38
+ // export function transformReply(reply: InfoRawReply): InfoReply {
39
+ // return {
40
+ // size: reply[1],
41
+ // numberOfBuckets: reply[3],
42
+ // numberOfFilters: reply[5],
43
+ // numberOfInsertedItems: reply[7],
44
+ // numberOfDeletedItems: reply[9],
45
+ // bucketSize: reply[11],
46
+ // expansionRate: reply[13],
47
+ // maxIteration: reply[15]
48
+ // };
49
+ // }
50
+ transformReply: undefined
51
+ };
@@ -0,0 +1,17 @@
1
+ import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
3
+ export interface CfInsertOptions {
4
+ CAPACITY?: number;
5
+ NOCREATE?: boolean;
6
+ }
7
+ export declare function transofrmCfInsertArguments(command: RedisArgument, key: RedisArgument, items: RedisVariadicArgument, options?: CfInsertOptions): import("@redis/client/dist/lib/RESP/types").CommandArguments;
8
+ declare const _default: {
9
+ readonly FIRST_KEY_INDEX: 1;
10
+ readonly IS_READ_ONLY: false;
11
+ readonly transformArguments: (key: RedisArgument, items: RedisVariadicArgument, options?: CfInsertOptions | undefined) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
12
+ readonly transformReply: {
13
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
14
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
15
+ };
16
+ };
17
+ export default _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transofrmCfInsertArguments = void 0;
4
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
5
+ function transofrmCfInsertArguments(command, key, items, options) {
6
+ const args = [command, key];
7
+ if (options?.CAPACITY !== undefined) {
8
+ args.push('CAPACITY', options.CAPACITY.toString());
9
+ }
10
+ if (options?.NOCREATE) {
11
+ args.push('NOCREATE');
12
+ }
13
+ args.push('ITEMS');
14
+ return (0, generic_transformers_1.pushVariadicArguments)(args, items);
15
+ }
16
+ exports.transofrmCfInsertArguments = transofrmCfInsertArguments;
17
+ exports.default = {
18
+ FIRST_KEY_INDEX: 1,
19
+ IS_READ_ONLY: false,
20
+ transformArguments: transofrmCfInsertArguments.bind(undefined, 'CF.INSERT'),
21
+ transformReply: generic_transformers_1.transformBooleanArrayReply
22
+ };
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ readonly FIRST_KEY_INDEX: 1;
3
+ readonly IS_READ_ONLY: false;
4
+ readonly transformArguments: (key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./INSERT").CfInsertOptions | undefined) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
5
+ readonly transformReply: {
6
+ 2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
7
+ 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
8
+ };
9
+ };
10
+ export default _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const INSERT_1 = __importStar(require("./INSERT"));
27
+ exports.default = {
28
+ FIRST_KEY_INDEX: INSERT_1.default.FIRST_KEY_INDEX,
29
+ IS_READ_ONLY: INSERT_1.default.IS_READ_ONLY,
30
+ transformArguments: INSERT_1.transofrmCfInsertArguments.bind(undefined, 'CF.INSERTNX'),
31
+ transformReply: INSERT_1.default.transformReply
32
+ };
@@ -0,0 +1,8 @@
1
+ import { SimpleStringReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: false;
5
+ readonly transformArguments: (this: void, key: RedisArgument, iterator: number, chunk: RedisArgument) => RedisArgument[];
6
+ readonly transformReply: () => SimpleStringReply<'OK'>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: false,
6
+ transformArguments(key, iterator, chunk) {
7
+ return ['CF.LOADCHUNK', key, iterator.toString(), chunk];
8
+ },
9
+ transformReply: undefined
10
+ };
@@ -0,0 +1,13 @@
1
+ import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
2
+ export interface CfReserveOptions {
3
+ BUCKETSIZE?: number;
4
+ MAXITERATIONS?: number;
5
+ EXPANSION?: number;
6
+ }
7
+ declare const _default: {
8
+ readonly FIRST_KEY_INDEX: 1;
9
+ readonly IS_READ_ONLY: false;
10
+ readonly transformArguments: (this: void, key: RedisArgument, capacity: number, options?: CfReserveOptions) => RedisArgument[];
11
+ readonly transformReply: () => SimpleStringReply<'OK'>;
12
+ };
13
+ export default _default;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: false,
6
+ transformArguments(key, capacity, options) {
7
+ const args = ['CF.RESERVE', key, capacity.toString()];
8
+ if (options?.BUCKETSIZE !== undefined) {
9
+ args.push('BUCKETSIZE', options.BUCKETSIZE.toString());
10
+ }
11
+ if (options?.MAXITERATIONS !== undefined) {
12
+ args.push('MAXITERATIONS', options.MAXITERATIONS.toString());
13
+ }
14
+ if (options?.EXPANSION !== undefined) {
15
+ args.push('EXPANSION', options.EXPANSION.toString());
16
+ }
17
+ return args;
18
+ },
19
+ transformReply: undefined
20
+ };
@@ -0,0 +1,11 @@
1
+ import { RedisArgument, NumberReply, BlobStringReply, NullReply } from '@redis/client/dist/lib/RESP/types';
2
+ declare const _default: {
3
+ readonly FIRST_KEY_INDEX: 1;
4
+ readonly IS_READ_ONLY: true;
5
+ readonly transformArguments: (this: void, key: RedisArgument, iterator: number) => RedisArgument[];
6
+ readonly transformReply: (this: void, reply: [NumberReply<number>, BlobStringReply<string> | NullReply]) => {
7
+ iterator: NumberReply<number>;
8
+ chunk: BlobStringReply<string> | NullReply;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ FIRST_KEY_INDEX: 1,
5
+ IS_READ_ONLY: true,
6
+ transformArguments(key, iterator) {
7
+ return ['CF.SCANDUMP', key, iterator.toString()];
8
+ },
9
+ transformReply(reply) {
10
+ return {
11
+ iterator: reply[0],
12
+ chunk: reply[1]
13
+ };
14
+ }
15
+ };