@upstash/redis 0.0.0-ci.bafaa360-20230119 → 0.0.0-ci.bb93ac2803c2e927dc8bf1a1b3c5aa2a14034eb6-20240930061920

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 (1028) hide show
  1. package/.env.example +2 -0
  2. package/.github/workflows/release.yml +53 -0
  3. package/.github/workflows/tests.yaml +609 -0
  4. package/.gitignore +175 -0
  5. package/.husky/commit-msg +1 -0
  6. package/.husky/pre-commit +2 -0
  7. package/.husky/pre-push +1 -0
  8. package/.prettierignore +1 -0
  9. package/.vscode/extensions.json +3 -0
  10. package/.vscode/settings.json +20 -0
  11. package/README.md +18 -7
  12. package/bun.lockb +0 -0
  13. package/commitlint.config.js +46 -0
  14. package/dist/LICENSE +21 -0
  15. package/dist/README.md +136 -0
  16. package/dist/chunk-TEVCO3ZO.mjs +3797 -0
  17. package/dist/cloudflare.d.mts +55 -0
  18. package/dist/cloudflare.d.ts +55 -0
  19. package/dist/cloudflare.js +3907 -0
  20. package/dist/cloudflare.mjs +91 -0
  21. package/dist/fastly.d.mts +48 -0
  22. package/dist/fastly.d.ts +48 -0
  23. package/dist/fastly.js +3880 -0
  24. package/dist/fastly.mjs +64 -0
  25. package/dist/nodejs.d.mts +73 -0
  26. package/dist/nodejs.d.ts +73 -0
  27. package/dist/nodejs.js +3926 -0
  28. package/dist/nodejs.mjs +110 -0
  29. package/dist/package.json +1 -0
  30. package/dist/zmscore-BhX8yEQc.d.mts +3486 -0
  31. package/dist/zmscore-BhX8yEQc.d.ts +3486 -0
  32. package/eslint.config.mjs +102 -0
  33. package/examples/auto-pipeline/.eslintrc.json +3 -0
  34. package/examples/auto-pipeline/README.md +77 -0
  35. package/examples/auto-pipeline/app/components/DataComponent.tsx +49 -0
  36. package/examples/auto-pipeline/app/data/getEvents.ts +18 -0
  37. package/examples/auto-pipeline/app/data/getUsers.ts +18 -0
  38. package/examples/auto-pipeline/app/data/redis.ts +12 -0
  39. package/examples/auto-pipeline/app/favicon.ico +0 -0
  40. package/examples/auto-pipeline/app/globals.css +0 -0
  41. package/examples/auto-pipeline/app/layout.tsx +22 -0
  42. package/examples/auto-pipeline/app/page.tsx +15 -0
  43. package/examples/auto-pipeline/next.config.mjs +4 -0
  44. package/examples/auto-pipeline/package.json +27 -0
  45. package/examples/auto-pipeline/postcss.config.mjs +8 -0
  46. package/examples/auto-pipeline/public/next.svg +1 -0
  47. package/examples/auto-pipeline/public/vercel.svg +1 -0
  48. package/examples/auto-pipeline/tailwind.config.ts +20 -0
  49. package/examples/auto-pipeline/tsconfig.json +26 -0
  50. package/examples/aws-cdk-python/README.md +36 -0
  51. package/examples/aws-cdk-python/cdk.json +72 -0
  52. package/examples/aws-cdk-python/jest.config.js +8 -0
  53. package/examples/aws-cdk-python/lib/api/index.py +10 -0
  54. package/examples/aws-cdk-python/lib/api/requirements.txt +1 -0
  55. package/examples/aws-cdk-python/package-lock.json +4470 -0
  56. package/examples/aws-cdk-python/package.json +27 -0
  57. package/examples/aws-cdk-python/tsconfig.json +31 -0
  58. package/examples/aws-cdk-typescript/README.md +36 -0
  59. package/examples/aws-cdk-typescript/cdk.json +72 -0
  60. package/examples/aws-cdk-typescript/jest.config.js +8 -0
  61. package/examples/aws-cdk-typescript/package-lock.json +4548 -0
  62. package/examples/aws-cdk-typescript/package.json +28 -0
  63. package/examples/aws-cdk-typescript/tsconfig.json +31 -0
  64. package/examples/aws-lambda/README.md +39 -0
  65. package/examples/aws-lambda/index.js +11 -0
  66. package/examples/aws-lambda/package-lock.json +27 -0
  67. package/examples/aws-lambda/package.json +6 -0
  68. package/examples/aws-sam/README.md +34 -0
  69. package/examples/aws-sam/__init__.py +0 -0
  70. package/examples/aws-sam/events/event.json +62 -0
  71. package/examples/aws-sam/hello_world/__init__.py +0 -0
  72. package/examples/aws-sam/hello_world/app.py +10 -0
  73. package/examples/aws-sam/hello_world/requirements.txt +2 -0
  74. package/examples/aws-sam/samconfig.toml +34 -0
  75. package/examples/aws-sam/template.yaml +52 -0
  76. package/examples/aws-sam/tests/__init__.py +0 -0
  77. package/examples/aws-sam/tests/integration/__init__.py +0 -0
  78. package/examples/aws-sam/tests/integration/test_api_gateway.py +45 -0
  79. package/examples/aws-sam/tests/requirements.txt +3 -0
  80. package/examples/aws-sam/tests/unit/__init__.py +0 -0
  81. package/examples/aws-sam/tests/unit/test_handler.py +72 -0
  82. package/examples/azure-functions/.funcignore +10 -0
  83. package/examples/azure-functions/.vscode/extensions.json +5 -0
  84. package/examples/azure-functions/README.md +67 -0
  85. package/examples/azure-functions/host.json +15 -0
  86. package/examples/azure-functions/package-lock.json +1019 -0
  87. package/examples/azure-functions/package.json +24 -0
  88. package/examples/azure-functions/src/functions/CounterFunction.ts +19 -0
  89. package/examples/azure-functions/tsconfig.json +10 -0
  90. package/examples/cloudflare-workers/README.md +26 -0
  91. package/examples/cloudflare-workers/bun.lockb +0 -0
  92. package/examples/cloudflare-workers/ci.test.ts +18 -0
  93. package/examples/cloudflare-workers/index.js +11 -0
  94. package/examples/cloudflare-workers/package.json +17 -0
  95. package/examples/cloudflare-workers/wrangler.toml +11 -0
  96. package/examples/cloudflare-workers-with-typescript/README.md +26 -0
  97. package/examples/cloudflare-workers-with-typescript/ci.test.ts +17 -0
  98. package/examples/cloudflare-workers-with-typescript/package.json +17 -0
  99. package/examples/cloudflare-workers-with-typescript/src/index.ts +16 -0
  100. package/examples/cloudflare-workers-with-typescript/tsconfig.json +105 -0
  101. package/examples/cloudflare-workers-with-typescript/wrangler.toml +9 -0
  102. package/examples/deno/main.test.ts +16 -0
  103. package/examples/deno/main.ts +9 -0
  104. package/examples/fastapi/README.md +23 -0
  105. package/examples/fastapi/main.py +12 -0
  106. package/examples/fastapi/requirements.txt +2 -0
  107. package/examples/fastly/README.md +7 -0
  108. package/examples/fastly/fastly.toml +12 -0
  109. package/examples/fastly/package.json +23 -0
  110. package/examples/fastly/src/index.js +19 -0
  111. package/examples/fastly/webpack.config.js +28 -0
  112. package/examples/google-cloud-functions/README.md +37 -0
  113. package/examples/google-cloud-functions/index.js +12 -0
  114. package/examples/google-cloud-functions/package.json +7 -0
  115. package/examples/ion/.env.example +2 -0
  116. package/examples/ion/.eslintrc.json +3 -0
  117. package/examples/ion/README.md +49 -0
  118. package/examples/ion/app/favicon.ico +0 -0
  119. package/examples/ion/app/globals.css +33 -0
  120. package/examples/ion/app/layout.tsx +22 -0
  121. package/examples/ion/app/page.tsx +12 -0
  122. package/examples/ion/next.config.mjs +4 -0
  123. package/examples/ion/package-lock.json +6709 -0
  124. package/examples/ion/package.json +28 -0
  125. package/examples/ion/postcss.config.mjs +8 -0
  126. package/examples/ion/public/next.svg +1 -0
  127. package/examples/ion/public/vercel.svg +1 -0
  128. package/examples/ion/sst-env.d.ts +12 -0
  129. package/examples/ion/sst.config.ts +19 -0
  130. package/examples/ion/tailwind.config.ts +20 -0
  131. package/examples/ion/tsconfig.json +26 -0
  132. package/examples/nextjs-app-router/.env.example +2 -0
  133. package/examples/nextjs-app-router/.eslintrc.json +3 -0
  134. package/examples/nextjs-app-router/README.md +26 -0
  135. package/examples/nextjs-app-router/app/globals.css +3 -0
  136. package/examples/nextjs-app-router/app/layout.tsx +22 -0
  137. package/examples/nextjs-app-router/app/page.tsx +12 -0
  138. package/examples/nextjs-app-router/next.config.mjs +4 -0
  139. package/examples/nextjs-app-router/package.json +27 -0
  140. package/examples/nextjs-app-router/postcss.config.mjs +8 -0
  141. package/examples/nextjs-app-router/tailwind.config.ts +20 -0
  142. package/examples/nextjs-app-router/tsconfig.json +26 -0
  143. package/examples/nextjs-pages-router/.env.example +2 -0
  144. package/examples/nextjs-pages-router/.eslintrc.json +3 -0
  145. package/examples/nextjs-pages-router/README.md +26 -0
  146. package/examples/nextjs-pages-router/next.config.mjs +6 -0
  147. package/examples/nextjs-pages-router/package.json +27 -0
  148. package/examples/nextjs-pages-router/pages/_app.tsx +6 -0
  149. package/examples/nextjs-pages-router/pages/_document.tsx +13 -0
  150. package/examples/nextjs-pages-router/pages/api/hello.ts +13 -0
  151. package/examples/nextjs-pages-router/pages/index.tsx +19 -0
  152. package/examples/nextjs-pages-router/postcss.config.mjs +8 -0
  153. package/examples/nextjs-pages-router/styles/globals.css +3 -0
  154. package/examples/nextjs-pages-router/tailwind.config.ts +20 -0
  155. package/examples/nextjs-pages-router/tsconfig.json +21 -0
  156. package/examples/nodejs/.env.example +2 -0
  157. package/examples/nodejs/README.md +24 -0
  158. package/examples/nodejs/index.js +10 -0
  159. package/examples/nodejs/package.json +10 -0
  160. package/examples/serverless-framework/counter/.env.example +2 -0
  161. package/examples/serverless-framework/counter/README.md +38 -0
  162. package/examples/serverless-framework/counter/handler.js +12 -0
  163. package/examples/serverless-framework/counter/package-lock.json +27 -0
  164. package/examples/serverless-framework/counter/package.json +6 -0
  165. package/examples/serverless-framework/counter/serverless.yml +16 -0
  166. package/examples/sst-v2/.vscode/launch.json +15 -0
  167. package/examples/sst-v2/.vscode/settings.json +5 -0
  168. package/examples/sst-v2/README.md +62 -0
  169. package/examples/sst-v2/package.json +27 -0
  170. package/examples/sst-v2/packages/core/package.json +14 -0
  171. package/examples/sst-v2/packages/core/sst-env.d.ts +1 -0
  172. package/examples/sst-v2/packages/core/tsconfig.json +7 -0
  173. package/examples/sst-v2/packages/functions/package.json +15 -0
  174. package/examples/sst-v2/packages/functions/sst-env.d.ts +1 -0
  175. package/examples/sst-v2/packages/functions/tsconfig.json +11 -0
  176. package/examples/sst-v2/packages/web/README.md +40 -0
  177. package/examples/sst-v2/packages/web/next.config.mjs +6 -0
  178. package/examples/sst-v2/packages/web/package.json +23 -0
  179. package/examples/sst-v2/packages/web/pages/_app.tsx +6 -0
  180. package/examples/sst-v2/packages/web/pages/_document.tsx +13 -0
  181. package/examples/sst-v2/packages/web/pages/api/hello.ts +16 -0
  182. package/examples/sst-v2/packages/web/pages/index.tsx +114 -0
  183. package/examples/sst-v2/packages/web/public/favicon.ico +0 -0
  184. package/examples/sst-v2/packages/web/public/next.svg +1 -0
  185. package/examples/sst-v2/packages/web/public/vercel.svg +1 -0
  186. package/examples/sst-v2/packages/web/sst-env.d.ts +1 -0
  187. package/examples/sst-v2/packages/web/styles/Home.module.css +229 -0
  188. package/examples/sst-v2/packages/web/styles/globals.css +107 -0
  189. package/examples/sst-v2/packages/web/tsconfig.json +36 -0
  190. package/examples/sst-v2/pnpm-workspace.yaml +2 -0
  191. package/examples/sst-v2/sst.config.ts +14 -0
  192. package/examples/sst-v2/stacks/Default.ts +13 -0
  193. package/examples/sst-v2/tsconfig.json +8 -0
  194. package/examples/terraform/README.md +38 -0
  195. package/examples/terraform/counter/counter.js +11 -0
  196. package/examples/terraform/counter/package.json +6 -0
  197. package/examples/terraform/main.tf +166 -0
  198. package/examples/terraform/outputs.tf +17 -0
  199. package/examples/terraform/terraform.tf +18 -0
  200. package/examples/terraform/variables.tf +6 -0
  201. package/examples/vercel-functions-app-router/.env.example +2 -0
  202. package/examples/vercel-functions-app-router/.eslintrc.json +3 -0
  203. package/examples/vercel-functions-app-router/README.md +26 -0
  204. package/examples/vercel-functions-app-router/app/api/hello/route.ts +11 -0
  205. package/examples/vercel-functions-app-router/app/globals.css +3 -0
  206. package/examples/vercel-functions-app-router/app/layout.tsx +22 -0
  207. package/examples/vercel-functions-app-router/ci.test.ts +14 -0
  208. package/examples/vercel-functions-app-router/next.config.mjs +4 -0
  209. package/examples/vercel-functions-app-router/package.json +27 -0
  210. package/examples/vercel-functions-app-router/postcss.config.mjs +8 -0
  211. package/examples/vercel-functions-app-router/tailwind.config.ts +20 -0
  212. package/examples/vercel-functions-app-router/tsconfig.json +26 -0
  213. package/examples/vercel-functions-pages-router/.env.example +2 -0
  214. package/examples/vercel-functions-pages-router/.eslintrc.json +3 -0
  215. package/examples/vercel-functions-pages-router/README.md +26 -0
  216. package/examples/vercel-functions-pages-router/ci.test.ts +14 -0
  217. package/examples/vercel-functions-pages-router/next.config.mjs +6 -0
  218. package/examples/vercel-functions-pages-router/package.json +27 -0
  219. package/examples/vercel-functions-pages-router/pages/_app.tsx +6 -0
  220. package/examples/vercel-functions-pages-router/pages/_document.tsx +13 -0
  221. package/examples/vercel-functions-pages-router/pages/api/hello.ts +12 -0
  222. package/examples/vercel-functions-pages-router/postcss.config.mjs +8 -0
  223. package/examples/vercel-functions-pages-router/styles/globals.css +3 -0
  224. package/examples/vercel-functions-pages-router/tailwind.config.ts +20 -0
  225. package/examples/vercel-functions-pages-router/tsconfig.json +21 -0
  226. package/examples/vercel-python-runtime-django/.env.example +2 -0
  227. package/examples/vercel-python-runtime-django/README.md +34 -0
  228. package/examples/vercel-python-runtime-django/api/__init__.py +0 -0
  229. package/examples/vercel-python-runtime-django/api/asgi.py +16 -0
  230. package/examples/vercel-python-runtime-django/api/settings.py +121 -0
  231. package/examples/vercel-python-runtime-django/api/urls.py +22 -0
  232. package/examples/vercel-python-runtime-django/api/wsgi.py +16 -0
  233. package/examples/vercel-python-runtime-django/example/__init__.py +0 -0
  234. package/examples/vercel-python-runtime-django/example/admin.py +3 -0
  235. package/examples/vercel-python-runtime-django/example/apps.py +6 -0
  236. package/examples/vercel-python-runtime-django/example/urls.py +9 -0
  237. package/examples/vercel-python-runtime-django/example/views.py +18 -0
  238. package/examples/vercel-python-runtime-django/manage.py +22 -0
  239. package/examples/vercel-python-runtime-django/package.json +5 -0
  240. package/examples/vercel-python-runtime-django/requirements.txt +2 -0
  241. package/examples/vercel-python-runtime-django/vercel.json +8 -0
  242. package/examples/with-sentry/index.ts +36 -0
  243. package/examples/with-sentry/package.json +17 -0
  244. package/package.json +1 -63
  245. package/pkg/auto-pipeline.test.ts +321 -0
  246. package/pkg/auto-pipeline.ts +107 -0
  247. package/pkg/commands/append.test.ts +28 -0
  248. package/pkg/commands/append.ts +11 -0
  249. package/pkg/commands/bitcount.test.ts +37 -0
  250. package/pkg/commands/bitcount.ts +29 -0
  251. package/pkg/commands/bitfield.test.ts +51 -0
  252. package/pkg/commands/bitfield.ts +50 -0
  253. package/pkg/commands/bitop.test.ts +45 -0
  254. package/pkg/commands/bitop.ts +22 -0
  255. package/pkg/commands/bitpos.test.ts +47 -0
  256. package/pkg/commands/bitpos.ts +14 -0
  257. package/pkg/commands/command.test.ts +22 -0
  258. package/pkg/commands/command.ts +98 -0
  259. package/pkg/commands/copy.test.ts +65 -0
  260. package/pkg/commands/copy.ts +22 -0
  261. package/pkg/commands/dbsize.test.ts +18 -0
  262. package/pkg/commands/dbsize.ts +11 -0
  263. package/pkg/commands/decr.test.ts +23 -0
  264. package/pkg/commands/decr.ts +11 -0
  265. package/pkg/commands/decrby.test.ts +24 -0
  266. package/pkg/commands/decrby.ts +11 -0
  267. package/pkg/commands/del.test.ts +38 -0
  268. package/pkg/commands/del.ts +11 -0
  269. package/pkg/commands/echo.test.ts +11 -0
  270. package/pkg/commands/echo.ts +11 -0
  271. package/pkg/commands/eval.test.ts +30 -0
  272. package/pkg/commands/eval.ts +14 -0
  273. package/pkg/commands/evalsha.test.ts +19 -0
  274. package/pkg/commands/evalsha.ts +14 -0
  275. package/pkg/commands/exists.test.ts +38 -0
  276. package/pkg/commands/exists.ts +11 -0
  277. package/pkg/commands/expire.test.ts +119 -0
  278. package/pkg/commands/expire.ts +12 -0
  279. package/pkg/commands/expireat.test.ts +25 -0
  280. package/pkg/commands/expireat.ts +11 -0
  281. package/pkg/commands/flushall.test.ts +18 -0
  282. package/pkg/commands/flushall.ts +14 -0
  283. package/pkg/commands/flushdb.test.ts +17 -0
  284. package/pkg/commands/flushdb.ts +14 -0
  285. package/pkg/commands/geo_add.test.ts +202 -0
  286. package/pkg/commands/geo_add.ts +54 -0
  287. package/pkg/commands/geo_dist.test.ts +79 -0
  288. package/pkg/commands/geo_dist.ts +19 -0
  289. package/pkg/commands/geo_hash.test.ts +49 -0
  290. package/pkg/commands/geo_hash.ts +23 -0
  291. package/pkg/commands/geo_pos.test.ts +60 -0
  292. package/pkg/commands/geo_pos.ts +39 -0
  293. package/pkg/commands/geo_search.test.ts +197 -0
  294. package/pkg/commands/geo_search.ts +139 -0
  295. package/pkg/commands/geo_search_store.test.ts +153 -0
  296. package/pkg/commands/geo_search_store.ts +69 -0
  297. package/pkg/commands/get.test.ts +35 -0
  298. package/pkg/commands/get.ts +11 -0
  299. package/pkg/commands/getbit.test.ts +17 -0
  300. package/pkg/commands/getbit.ts +11 -0
  301. package/pkg/commands/getdel.test.ts +39 -0
  302. package/pkg/commands/getdel.ts +11 -0
  303. package/pkg/commands/getrange.test.ts +25 -0
  304. package/pkg/commands/getrange.ts +14 -0
  305. package/pkg/commands/getset.test.ts +33 -0
  306. package/pkg/commands/getset.ts +14 -0
  307. package/pkg/commands/hdel.test.ts +45 -0
  308. package/pkg/commands/hdel.ts +11 -0
  309. package/pkg/commands/hexists.test.ts +36 -0
  310. package/pkg/commands/hexists.ts +11 -0
  311. package/pkg/commands/hget.test.ts +52 -0
  312. package/pkg/commands/hget.ts +14 -0
  313. package/pkg/commands/hgetall.test.ts +45 -0
  314. package/pkg/commands/hgetall.ts +37 -0
  315. package/pkg/commands/hincrby.test.ts +28 -0
  316. package/pkg/commands/hincrby.ts +14 -0
  317. package/pkg/commands/hincrbyfloat.test.ts +28 -0
  318. package/pkg/commands/hincrbyfloat.ts +14 -0
  319. package/pkg/commands/hkeys.test.ts +23 -0
  320. package/pkg/commands/hkeys.ts +11 -0
  321. package/pkg/commands/hlen.test.ts +25 -0
  322. package/pkg/commands/hlen.ts +11 -0
  323. package/pkg/commands/hmget.test.ts +44 -0
  324. package/pkg/commands/hmget.ts +46 -0
  325. package/pkg/commands/hmset.test.ts +23 -0
  326. package/pkg/commands/hmset.ts +14 -0
  327. package/pkg/commands/hrandfield.test.ts +59 -0
  328. package/pkg/commands/hrandfield.ts +50 -0
  329. package/pkg/commands/hscan.test.ts +44 -0
  330. package/pkg/commands/hscan.ts +30 -0
  331. package/pkg/commands/hset.test.ts +21 -0
  332. package/pkg/commands/hset.ts +14 -0
  333. package/pkg/commands/hsetnx.test.ts +37 -0
  334. package/pkg/commands/hsetnx.ts +14 -0
  335. package/pkg/commands/hstrlen.test.ts +24 -0
  336. package/pkg/commands/hstrlen.ts +11 -0
  337. package/pkg/commands/hvals.test.ts +24 -0
  338. package/pkg/commands/hvals.ts +11 -0
  339. package/pkg/commands/incr.test.ts +24 -0
  340. package/pkg/commands/incr.ts +11 -0
  341. package/pkg/commands/incrby.test.ts +24 -0
  342. package/pkg/commands/incrby.ts +11 -0
  343. package/pkg/commands/incrbyfloat.test.ts +25 -0
  344. package/pkg/commands/incrbyfloat.ts +11 -0
  345. package/pkg/commands/json_arrappend.test.ts +40 -0
  346. package/pkg/commands/json_arrappend.ts +17 -0
  347. package/pkg/commands/json_arrindex.test.ts +54 -0
  348. package/pkg/commands/json_arrindex.ts +14 -0
  349. package/pkg/commands/json_arrinsert.test.ts +49 -0
  350. package/pkg/commands/json_arrinsert.ts +17 -0
  351. package/pkg/commands/json_arrlen.test.ts +31 -0
  352. package/pkg/commands/json_arrlen.ts +14 -0
  353. package/pkg/commands/json_arrpop.test.ts +30 -0
  354. package/pkg/commands/json_arrpop.ts +14 -0
  355. package/pkg/commands/json_arrtrim.test.ts +31 -0
  356. package/pkg/commands/json_arrtrim.ts +18 -0
  357. package/pkg/commands/json_clear.test.ts +35 -0
  358. package/pkg/commands/json_clear.ts +11 -0
  359. package/pkg/commands/json_del.test.ts +29 -0
  360. package/pkg/commands/json_del.ts +11 -0
  361. package/pkg/commands/json_forget.test.ts +29 -0
  362. package/pkg/commands/json_forget.ts +11 -0
  363. package/pkg/commands/json_get.test.ts +28 -0
  364. package/pkg/commands/json_get.ts +44 -0
  365. package/pkg/commands/json_mget.test.ts +43 -0
  366. package/pkg/commands/json_mget.ts +11 -0
  367. package/pkg/commands/json_mset.test.ts +50 -0
  368. package/pkg/commands/json_mset.ts +26 -0
  369. package/pkg/commands/json_numincrby.test.ts +28 -0
  370. package/pkg/commands/json_numincrby.ts +14 -0
  371. package/pkg/commands/json_nummultby.test.ts +28 -0
  372. package/pkg/commands/json_nummultby.ts +14 -0
  373. package/pkg/commands/json_objkeys.test.ts +32 -0
  374. package/pkg/commands/json_objkeys.ts +14 -0
  375. package/pkg/commands/json_objlen.test.ts +26 -0
  376. package/pkg/commands/json_objlen.ts +14 -0
  377. package/pkg/commands/json_resp.test.ts +31 -0
  378. package/pkg/commands/json_resp.ts +11 -0
  379. package/pkg/commands/json_set.test.ts +48 -0
  380. package/pkg/commands/json_set.ts +34 -0
  381. package/pkg/commands/json_strappend.test.ts +34 -0
  382. package/pkg/commands/json_strappend.ts +14 -0
  383. package/pkg/commands/json_strlen.test.ts +27 -0
  384. package/pkg/commands/json_strlen.ts +14 -0
  385. package/pkg/commands/json_toggle.test.ts +26 -0
  386. package/pkg/commands/json_toggle.ts +11 -0
  387. package/pkg/commands/json_type.test.ts +29 -0
  388. package/pkg/commands/json_type.ts +11 -0
  389. package/pkg/commands/keys.test.ts +18 -0
  390. package/pkg/commands/keys.ts +11 -0
  391. package/pkg/commands/lindex.test.ts +33 -0
  392. package/pkg/commands/lindex.ts +11 -0
  393. package/pkg/commands/linsert.test.ts +24 -0
  394. package/pkg/commands/linsert.ts +10 -0
  395. package/pkg/commands/llen.test.ts +27 -0
  396. package/pkg/commands/llen.ts +11 -0
  397. package/pkg/commands/lmove.test.ts +48 -0
  398. package/pkg/commands/lmove.ts +19 -0
  399. package/pkg/commands/lmpop.test.ts +86 -0
  400. package/pkg/commands/lmpop.ts +19 -0
  401. package/pkg/commands/lpop.test.ts +40 -0
  402. package/pkg/commands/lpop.ts +14 -0
  403. package/pkg/commands/lpos.test.ts +56 -0
  404. package/pkg/commands/lpos.ts +25 -0
  405. package/pkg/commands/lpush.test.ts +18 -0
  406. package/pkg/commands/lpush.ts +11 -0
  407. package/pkg/commands/lpushx.test.ts +30 -0
  408. package/pkg/commands/lpushx.ts +11 -0
  409. package/pkg/commands/lrange.test.ts +21 -0
  410. package/pkg/commands/lrange.ts +11 -0
  411. package/pkg/commands/lrem.test.ts +19 -0
  412. package/pkg/commands/lrem.ts +10 -0
  413. package/pkg/commands/lset.test.ts +43 -0
  414. package/pkg/commands/lset.ts +8 -0
  415. package/pkg/commands/ltrim.test.ts +30 -0
  416. package/pkg/commands/ltrim.ts +8 -0
  417. package/pkg/commands/mget.test.ts +44 -0
  418. package/pkg/commands/mget.ts +11 -0
  419. package/pkg/commands/mod.ts +168 -0
  420. package/pkg/commands/mset.test.ts +24 -0
  421. package/pkg/commands/mset.ts +11 -0
  422. package/pkg/commands/msetnx.test.ts +46 -0
  423. package/pkg/commands/msetnx.ts +11 -0
  424. package/pkg/commands/persist.test.ts +22 -0
  425. package/pkg/commands/persist.ts +11 -0
  426. package/pkg/commands/pexpire.test.ts +24 -0
  427. package/pkg/commands/pexpire.ts +11 -0
  428. package/pkg/commands/pexpireat.test.ts +31 -0
  429. package/pkg/commands/pexpireat.ts +11 -0
  430. package/pkg/commands/pfadd.test.ts +80 -0
  431. package/pkg/commands/pfadd.ts +11 -0
  432. package/pkg/commands/pfcount.test.ts +55 -0
  433. package/pkg/commands/pfcount.ts +11 -0
  434. package/pkg/commands/pfmerge.test.ts +67 -0
  435. package/pkg/commands/pfmerge.ts +11 -0
  436. package/pkg/commands/ping.test.ts +19 -0
  437. package/pkg/commands/ping.ts +14 -0
  438. package/pkg/commands/psetex.test.ts +23 -0
  439. package/pkg/commands/psetex.ts +14 -0
  440. package/pkg/commands/pttl.test.ts +18 -0
  441. package/pkg/commands/pttl.ts +11 -0
  442. package/pkg/commands/publish.test.ts +12 -0
  443. package/pkg/commands/publish.ts +11 -0
  444. package/pkg/commands/randomkey.test.ts +16 -0
  445. package/pkg/commands/randomkey.ts +11 -0
  446. package/pkg/commands/rename.test.ts +19 -0
  447. package/pkg/commands/rename.ts +11 -0
  448. package/pkg/commands/renamenx.test.ts +33 -0
  449. package/pkg/commands/renamenx.ts +11 -0
  450. package/pkg/commands/rpop.test.ts +40 -0
  451. package/pkg/commands/rpop.ts +17 -0
  452. package/pkg/commands/rpush.test.ts +17 -0
  453. package/pkg/commands/rpush.ts +11 -0
  454. package/pkg/commands/rpushx.test.ts +30 -0
  455. package/pkg/commands/rpushx.ts +11 -0
  456. package/pkg/commands/sadd.test.ts +22 -0
  457. package/pkg/commands/sadd.ts +14 -0
  458. package/pkg/commands/scan.test.ts +91 -0
  459. package/pkg/commands/scan.ts +33 -0
  460. package/pkg/commands/scard.test.ts +16 -0
  461. package/pkg/commands/scard.ts +10 -0
  462. package/pkg/commands/script_exists.test.ts +34 -0
  463. package/pkg/commands/script_exists.ts +14 -0
  464. package/pkg/commands/script_flush.ts +21 -0
  465. package/pkg/commands/script_load.test.ts +11 -0
  466. package/pkg/commands/script_load.ts +11 -0
  467. package/pkg/commands/sdiff.test.ts +20 -0
  468. package/pkg/commands/sdiff.ts +10 -0
  469. package/pkg/commands/sdiffstore.test.ts +22 -0
  470. package/pkg/commands/sdiffstore.ts +13 -0
  471. package/pkg/commands/set.test.ts +168 -0
  472. package/pkg/commands/set.ts +51 -0
  473. package/pkg/commands/setbit.test.ts +17 -0
  474. package/pkg/commands/setbit.ts +14 -0
  475. package/pkg/commands/setex.test.ts +22 -0
  476. package/pkg/commands/setex.ts +11 -0
  477. package/pkg/commands/setnx.test.ts +27 -0
  478. package/pkg/commands/setnx.ts +11 -0
  479. package/pkg/commands/setrange.test.ts +25 -0
  480. package/pkg/commands/setrange.ts +14 -0
  481. package/pkg/commands/sinter.test.ts +37 -0
  482. package/pkg/commands/sinter.ts +10 -0
  483. package/pkg/commands/sinterstore.test.ts +22 -0
  484. package/pkg/commands/sinterstore.ts +13 -0
  485. package/pkg/commands/sismember.test.ts +31 -0
  486. package/pkg/commands/sismember.ts +10 -0
  487. package/pkg/commands/smembers.test.ts +22 -0
  488. package/pkg/commands/smembers.ts +11 -0
  489. package/pkg/commands/smismember.test.ts +22 -0
  490. package/pkg/commands/smismember.ts +16 -0
  491. package/pkg/commands/smove.test.ts +18 -0
  492. package/pkg/commands/smove.ts +13 -0
  493. package/pkg/commands/spop.test.ts +36 -0
  494. package/pkg/commands/spop.ts +17 -0
  495. package/pkg/commands/srandmember.test.ts +31 -0
  496. package/pkg/commands/srandmember.ts +17 -0
  497. package/pkg/commands/srem.test.ts +19 -0
  498. package/pkg/commands/srem.ts +10 -0
  499. package/pkg/commands/sscan.test.ts +48 -0
  500. package/pkg/commands/sscan.ts +30 -0
  501. package/pkg/commands/strlen.test.ts +17 -0
  502. package/pkg/commands/strlen.ts +11 -0
  503. package/pkg/commands/sunion.test.ts +22 -0
  504. package/pkg/commands/sunion.ts +11 -0
  505. package/pkg/commands/sunionstore.test.ts +30 -0
  506. package/pkg/commands/sunionstore.ts +14 -0
  507. package/pkg/commands/time.test.ts +12 -0
  508. package/pkg/commands/time.ts +10 -0
  509. package/pkg/commands/touch.test.ts +21 -0
  510. package/pkg/commands/touch.ts +11 -0
  511. package/pkg/commands/ttl.test.ts +17 -0
  512. package/pkg/commands/ttl.ts +11 -0
  513. package/pkg/commands/type.test.ts +72 -0
  514. package/pkg/commands/type.ts +12 -0
  515. package/pkg/commands/types.ts +150 -0
  516. package/pkg/commands/unlink.test.ts +22 -0
  517. package/pkg/commands/unlink.ts +11 -0
  518. package/pkg/commands/xack.test.ts +53 -0
  519. package/pkg/commands/xack.ts +15 -0
  520. package/pkg/commands/xadd.test.ts +128 -0
  521. package/pkg/commands/xadd.ts +64 -0
  522. package/pkg/commands/xautoclaim.test.ts +105 -0
  523. package/pkg/commands/xautoclaim.ts +30 -0
  524. package/pkg/commands/xclaim.test.ts +70 -0
  525. package/pkg/commands/xclaim.ts +55 -0
  526. package/pkg/commands/xdel.test.ts +50 -0
  527. package/pkg/commands/xdel.ts +15 -0
  528. package/pkg/commands/xgroup.test.ts +202 -0
  529. package/pkg/commands/xgroup.ts +100 -0
  530. package/pkg/commands/xinfo.test.ts +82 -0
  531. package/pkg/commands/xinfo.ts +27 -0
  532. package/pkg/commands/xlen.test.ts +29 -0
  533. package/pkg/commands/xlen.ts +11 -0
  534. package/pkg/commands/xpending.test.ts +94 -0
  535. package/pkg/commands/xpending.ts +43 -0
  536. package/pkg/commands/xrange.test.ts +69 -0
  537. package/pkg/commands/xrange.ts +48 -0
  538. package/pkg/commands/xread.test.ts +117 -0
  539. package/pkg/commands/xread.ts +51 -0
  540. package/pkg/commands/xreadgroup.test.ts +166 -0
  541. package/pkg/commands/xreadgroup.ts +66 -0
  542. package/pkg/commands/xrevrange.test.ts +48 -0
  543. package/pkg/commands/xrevrange.ts +47 -0
  544. package/pkg/commands/xtrim.test.ts +65 -0
  545. package/pkg/commands/xtrim.ts +24 -0
  546. package/pkg/commands/zadd.test.ts +242 -0
  547. package/pkg/commands/zadd.ts +53 -0
  548. package/pkg/commands/zcard.test.ts +16 -0
  549. package/pkg/commands/zcard.ts +11 -0
  550. package/pkg/commands/zcount.test.ts +16 -0
  551. package/pkg/commands/zcount.ts +13 -0
  552. package/pkg/commands/zdiffstore.test.ts +42 -0
  553. package/pkg/commands/zdiffstore.ts +14 -0
  554. package/pkg/commands/zincrby.test.ts +19 -0
  555. package/pkg/commands/zincrby.ts +13 -0
  556. package/pkg/commands/zinterstore.test.ts +297 -0
  557. package/pkg/commands/zinterstore.ts +51 -0
  558. package/pkg/commands/zlexcount.test.ts +23 -0
  559. package/pkg/commands/zlexcount.ts +10 -0
  560. package/pkg/commands/zmscore.test.ts +39 -0
  561. package/pkg/commands/zmscore.ts +15 -0
  562. package/pkg/commands/zpopmax.test.ts +46 -0
  563. package/pkg/commands/zpopmax.ts +17 -0
  564. package/pkg/commands/zpopmin.test.ts +50 -0
  565. package/pkg/commands/zpopmin.ts +17 -0
  566. package/pkg/commands/zrange.test.ts +188 -0
  567. package/pkg/commands/zrange.ts +68 -0
  568. package/pkg/commands/zrank.test.ts +23 -0
  569. package/pkg/commands/zrank.ts +14 -0
  570. package/pkg/commands/zrem.test.ts +21 -0
  571. package/pkg/commands/zrem.ts +10 -0
  572. package/pkg/commands/zremrangebylex.test.ts +24 -0
  573. package/pkg/commands/zremrangebylex.ts +10 -0
  574. package/pkg/commands/zremrangebyrank.test.ts +27 -0
  575. package/pkg/commands/zremrangebyrank.ts +13 -0
  576. package/pkg/commands/zremrangebyscore.test.ts +24 -0
  577. package/pkg/commands/zremrangebyscore.ts +10 -0
  578. package/pkg/commands/zrevrank.test.ts +23 -0
  579. package/pkg/commands/zrevrank.ts +14 -0
  580. package/pkg/commands/zscan.test.ts +48 -0
  581. package/pkg/commands/zscan.ts +30 -0
  582. package/pkg/commands/zscore.test.ts +18 -0
  583. package/pkg/commands/zscore.ts +14 -0
  584. package/pkg/commands/zunion.test.ts +251 -0
  585. package/pkg/commands/zunion.ts +54 -0
  586. package/pkg/commands/zunionstore.test.ts +274 -0
  587. package/pkg/commands/zunionstore.ts +51 -0
  588. package/pkg/error.ts +18 -0
  589. package/pkg/http.ts +349 -0
  590. package/pkg/index.ts +1 -0
  591. package/pkg/pipeline.test.ts +254 -0
  592. package/pkg/pipeline.ts +1401 -0
  593. package/pkg/read-your-writes.test.ts +115 -0
  594. package/pkg/redis.test.ts +250 -0
  595. package/pkg/redis.ts +1367 -0
  596. package/pkg/script.test.ts +58 -0
  597. package/pkg/script.ts +67 -0
  598. package/pkg/test-utils.test.ts +17 -0
  599. package/pkg/test-utils.ts +72 -0
  600. package/pkg/types.ts +35 -0
  601. package/pkg/util.ts +42 -0
  602. package/platforms/cloudflare.ts +144 -0
  603. package/platforms/fastly.ts +100 -0
  604. package/platforms/nodejs.ts +196 -0
  605. package/prettier.config.mjs +13 -0
  606. package/tsconfig.json +21 -0
  607. package/tsup.config.ts +8 -0
  608. package/version.ts +1 -0
  609. package/.releaserc +0 -14
  610. package/esm/deps/deno.land/x/base64@v0.2.1/base.js +0 -100
  611. package/esm/deps/deno.land/x/base64@v0.2.1/base64url.js +0 -9
  612. package/esm/deps/deno.land/x/sha1@v1.0.3/deps.js +0 -1
  613. package/esm/deps/deno.land/x/sha1@v1.0.3/mod.js +0 -191
  614. package/esm/deps/denopkg.com/chiefbiiko/std-encoding@v1.0.0/mod.js +0 -50
  615. package/esm/package.json +0 -3
  616. package/esm/pkg/commands/append.js +0 -9
  617. package/esm/pkg/commands/bitcount.js +0 -16
  618. package/esm/pkg/commands/bitop.js +0 -9
  619. package/esm/pkg/commands/bitpos.js +0 -9
  620. package/esm/pkg/commands/command.js +0 -57
  621. package/esm/pkg/commands/dbsize.js +0 -9
  622. package/esm/pkg/commands/decr.js +0 -9
  623. package/esm/pkg/commands/decrby.js +0 -9
  624. package/esm/pkg/commands/del.js +0 -9
  625. package/esm/pkg/commands/echo.js +0 -9
  626. package/esm/pkg/commands/eval.js +0 -9
  627. package/esm/pkg/commands/evalsha.js +0 -9
  628. package/esm/pkg/commands/exists.js +0 -9
  629. package/esm/pkg/commands/expire.js +0 -9
  630. package/esm/pkg/commands/expireat.js +0 -9
  631. package/esm/pkg/commands/flushall.js +0 -13
  632. package/esm/pkg/commands/flushdb.js +0 -13
  633. package/esm/pkg/commands/get.js +0 -9
  634. package/esm/pkg/commands/getbit.js +0 -9
  635. package/esm/pkg/commands/getdel.js +0 -9
  636. package/esm/pkg/commands/getrange.js +0 -9
  637. package/esm/pkg/commands/getset.js +0 -9
  638. package/esm/pkg/commands/hdel.js +0 -9
  639. package/esm/pkg/commands/hexists.js +0 -9
  640. package/esm/pkg/commands/hget.js +0 -9
  641. package/esm/pkg/commands/hgetall.js +0 -29
  642. package/esm/pkg/commands/hincrby.js +0 -9
  643. package/esm/pkg/commands/hincrbyfloat.js +0 -9
  644. package/esm/pkg/commands/hkeys.js +0 -9
  645. package/esm/pkg/commands/hlen.js +0 -9
  646. package/esm/pkg/commands/hmget.js +0 -35
  647. package/esm/pkg/commands/hmset.js +0 -13
  648. package/esm/pkg/commands/hrandfield.js +0 -39
  649. package/esm/pkg/commands/hscan.js +0 -16
  650. package/esm/pkg/commands/hset.js +0 -13
  651. package/esm/pkg/commands/hsetnx.js +0 -9
  652. package/esm/pkg/commands/hstrlen.js +0 -9
  653. package/esm/pkg/commands/hvals.js +0 -9
  654. package/esm/pkg/commands/incr.js +0 -9
  655. package/esm/pkg/commands/incrby.js +0 -9
  656. package/esm/pkg/commands/incrbyfloat.js +0 -9
  657. package/esm/pkg/commands/keys.js +0 -9
  658. package/esm/pkg/commands/lindex.js +0 -6
  659. package/esm/pkg/commands/linsert.js +0 -6
  660. package/esm/pkg/commands/llen.js +0 -9
  661. package/esm/pkg/commands/lmove.js +0 -9
  662. package/esm/pkg/commands/lpop.js +0 -9
  663. package/esm/pkg/commands/lpos.js +0 -19
  664. package/esm/pkg/commands/lpush.js +0 -9
  665. package/esm/pkg/commands/lpushx.js +0 -9
  666. package/esm/pkg/commands/lrange.js +0 -6
  667. package/esm/pkg/commands/lrem.js +0 -6
  668. package/esm/pkg/commands/lset.js +0 -6
  669. package/esm/pkg/commands/ltrim.js +0 -6
  670. package/esm/pkg/commands/mget.js +0 -9
  671. package/esm/pkg/commands/mod.js +0 -119
  672. package/esm/pkg/commands/mset.js +0 -12
  673. package/esm/pkg/commands/msetnx.js +0 -9
  674. package/esm/pkg/commands/persist.js +0 -9
  675. package/esm/pkg/commands/pexpire.js +0 -9
  676. package/esm/pkg/commands/pexpireat.js +0 -9
  677. package/esm/pkg/commands/ping.js +0 -13
  678. package/esm/pkg/commands/psetex.js +0 -9
  679. package/esm/pkg/commands/pttl.js +0 -9
  680. package/esm/pkg/commands/publish.js +0 -9
  681. package/esm/pkg/commands/randomkey.js +0 -9
  682. package/esm/pkg/commands/rename.js +0 -9
  683. package/esm/pkg/commands/renamenx.js +0 -9
  684. package/esm/pkg/commands/rpop.js +0 -9
  685. package/esm/pkg/commands/rpush.js +0 -9
  686. package/esm/pkg/commands/rpushx.js +0 -9
  687. package/esm/pkg/commands/sadd.js +0 -9
  688. package/esm/pkg/commands/scan.js +0 -19
  689. package/esm/pkg/commands/scard.js +0 -9
  690. package/esm/pkg/commands/script_exists.js +0 -12
  691. package/esm/pkg/commands/script_flush.js +0 -16
  692. package/esm/pkg/commands/script_load.js +0 -9
  693. package/esm/pkg/commands/sdiff.js +0 -9
  694. package/esm/pkg/commands/sdiffstore.js +0 -9
  695. package/esm/pkg/commands/set.js +0 -36
  696. package/esm/pkg/commands/setbit.js +0 -9
  697. package/esm/pkg/commands/setex.js +0 -9
  698. package/esm/pkg/commands/setnx.js +0 -9
  699. package/esm/pkg/commands/setrange.js +0 -9
  700. package/esm/pkg/commands/sinter.js +0 -9
  701. package/esm/pkg/commands/sinterstore.js +0 -9
  702. package/esm/pkg/commands/sismember.js +0 -9
  703. package/esm/pkg/commands/smembers.js +0 -9
  704. package/esm/pkg/commands/smismember.js +0 -9
  705. package/esm/pkg/commands/smove.js +0 -9
  706. package/esm/pkg/commands/spop.js +0 -13
  707. package/esm/pkg/commands/srandmember.js +0 -13
  708. package/esm/pkg/commands/srem.js +0 -9
  709. package/esm/pkg/commands/sscan.js +0 -16
  710. package/esm/pkg/commands/strlen.js +0 -9
  711. package/esm/pkg/commands/sunion.js +0 -9
  712. package/esm/pkg/commands/sunionstore.js +0 -9
  713. package/esm/pkg/commands/time.js +0 -9
  714. package/esm/pkg/commands/touch.js +0 -9
  715. package/esm/pkg/commands/ttl.js +0 -9
  716. package/esm/pkg/commands/type.js +0 -9
  717. package/esm/pkg/commands/unlink.js +0 -9
  718. package/esm/pkg/commands/zadd.js +0 -26
  719. package/esm/pkg/commands/zcard.js +0 -9
  720. package/esm/pkg/commands/zcount.js +0 -9
  721. package/esm/pkg/commands/zdiffstore.js +0 -9
  722. package/esm/pkg/commands/zincrby.js +0 -9
  723. package/esm/pkg/commands/zinterstore.js +0 -27
  724. package/esm/pkg/commands/zlexcount.js +0 -9
  725. package/esm/pkg/commands/zmscore.js +0 -10
  726. package/esm/pkg/commands/zpopmax.js +0 -13
  727. package/esm/pkg/commands/zpopmin.js +0 -13
  728. package/esm/pkg/commands/zrange.js +0 -26
  729. package/esm/pkg/commands/zrank.js +0 -9
  730. package/esm/pkg/commands/zrem.js +0 -9
  731. package/esm/pkg/commands/zremrangebylex.js +0 -9
  732. package/esm/pkg/commands/zremrangebyrank.js +0 -9
  733. package/esm/pkg/commands/zremrangebyscore.js +0 -9
  734. package/esm/pkg/commands/zrevrank.js +0 -9
  735. package/esm/pkg/commands/zscan.js +0 -16
  736. package/esm/pkg/commands/zscore.js +0 -9
  737. package/esm/pkg/commands/zunionstore.js +0 -27
  738. package/esm/pkg/error.js +0 -9
  739. package/esm/pkg/http.js +0 -174
  740. package/esm/pkg/pipeline.js +0 -1199
  741. package/esm/pkg/redis.js +0 -1190
  742. package/esm/pkg/script.js +0 -77
  743. package/esm/pkg/types.js +0 -1
  744. package/esm/pkg/util.js +0 -31
  745. package/esm/platforms/cloudflare.js +0 -70
  746. package/esm/platforms/fastly.js +0 -41
  747. package/esm/platforms/node_with_fetch.js +0 -86
  748. package/esm/platforms/nodejs.js +0 -80
  749. package/esm/version.js +0 -1
  750. package/script/deps/deno.land/x/base64@v0.2.1/base.js +0 -104
  751. package/script/deps/deno.land/x/base64@v0.2.1/base64url.js +0 -13
  752. package/script/deps/deno.land/x/sha1@v1.0.3/deps.js +0 -6
  753. package/script/deps/deno.land/x/sha1@v1.0.3/mod.js +0 -196
  754. package/script/deps/denopkg.com/chiefbiiko/std-encoding@v1.0.0/mod.js +0 -55
  755. package/script/package.json +0 -3
  756. package/script/pkg/commands/append.js +0 -13
  757. package/script/pkg/commands/bitcount.js +0 -20
  758. package/script/pkg/commands/bitop.js +0 -13
  759. package/script/pkg/commands/bitpos.js +0 -13
  760. package/script/pkg/commands/command.js +0 -61
  761. package/script/pkg/commands/dbsize.js +0 -13
  762. package/script/pkg/commands/decr.js +0 -13
  763. package/script/pkg/commands/decrby.js +0 -13
  764. package/script/pkg/commands/del.js +0 -13
  765. package/script/pkg/commands/echo.js +0 -13
  766. package/script/pkg/commands/eval.js +0 -13
  767. package/script/pkg/commands/evalsha.js +0 -13
  768. package/script/pkg/commands/exists.js +0 -13
  769. package/script/pkg/commands/expire.js +0 -13
  770. package/script/pkg/commands/expireat.js +0 -13
  771. package/script/pkg/commands/flushall.js +0 -17
  772. package/script/pkg/commands/flushdb.js +0 -17
  773. package/script/pkg/commands/get.js +0 -13
  774. package/script/pkg/commands/getbit.js +0 -13
  775. package/script/pkg/commands/getdel.js +0 -13
  776. package/script/pkg/commands/getrange.js +0 -13
  777. package/script/pkg/commands/getset.js +0 -13
  778. package/script/pkg/commands/hdel.js +0 -13
  779. package/script/pkg/commands/hexists.js +0 -13
  780. package/script/pkg/commands/hget.js +0 -13
  781. package/script/pkg/commands/hgetall.js +0 -33
  782. package/script/pkg/commands/hincrby.js +0 -13
  783. package/script/pkg/commands/hincrbyfloat.js +0 -13
  784. package/script/pkg/commands/hkeys.js +0 -13
  785. package/script/pkg/commands/hlen.js +0 -13
  786. package/script/pkg/commands/hmget.js +0 -39
  787. package/script/pkg/commands/hmset.js +0 -17
  788. package/script/pkg/commands/hrandfield.js +0 -43
  789. package/script/pkg/commands/hscan.js +0 -20
  790. package/script/pkg/commands/hset.js +0 -17
  791. package/script/pkg/commands/hsetnx.js +0 -13
  792. package/script/pkg/commands/hstrlen.js +0 -13
  793. package/script/pkg/commands/hvals.js +0 -13
  794. package/script/pkg/commands/incr.js +0 -13
  795. package/script/pkg/commands/incrby.js +0 -13
  796. package/script/pkg/commands/incrbyfloat.js +0 -13
  797. package/script/pkg/commands/keys.js +0 -13
  798. package/script/pkg/commands/lindex.js +0 -10
  799. package/script/pkg/commands/linsert.js +0 -10
  800. package/script/pkg/commands/llen.js +0 -13
  801. package/script/pkg/commands/lmove.js +0 -13
  802. package/script/pkg/commands/lpop.js +0 -13
  803. package/script/pkg/commands/lpos.js +0 -23
  804. package/script/pkg/commands/lpush.js +0 -13
  805. package/script/pkg/commands/lpushx.js +0 -13
  806. package/script/pkg/commands/lrange.js +0 -10
  807. package/script/pkg/commands/lrem.js +0 -10
  808. package/script/pkg/commands/lset.js +0 -10
  809. package/script/pkg/commands/ltrim.js +0 -10
  810. package/script/pkg/commands/mget.js +0 -13
  811. package/script/pkg/commands/mod.js +0 -135
  812. package/script/pkg/commands/mset.js +0 -16
  813. package/script/pkg/commands/msetnx.js +0 -13
  814. package/script/pkg/commands/persist.js +0 -13
  815. package/script/pkg/commands/pexpire.js +0 -13
  816. package/script/pkg/commands/pexpireat.js +0 -13
  817. package/script/pkg/commands/ping.js +0 -17
  818. package/script/pkg/commands/psetex.js +0 -13
  819. package/script/pkg/commands/pttl.js +0 -13
  820. package/script/pkg/commands/publish.js +0 -13
  821. package/script/pkg/commands/randomkey.js +0 -13
  822. package/script/pkg/commands/rename.js +0 -13
  823. package/script/pkg/commands/renamenx.js +0 -13
  824. package/script/pkg/commands/rpop.js +0 -13
  825. package/script/pkg/commands/rpush.js +0 -13
  826. package/script/pkg/commands/rpushx.js +0 -13
  827. package/script/pkg/commands/sadd.js +0 -13
  828. package/script/pkg/commands/scan.js +0 -23
  829. package/script/pkg/commands/scard.js +0 -13
  830. package/script/pkg/commands/script_exists.js +0 -16
  831. package/script/pkg/commands/script_flush.js +0 -20
  832. package/script/pkg/commands/script_load.js +0 -13
  833. package/script/pkg/commands/sdiff.js +0 -13
  834. package/script/pkg/commands/sdiffstore.js +0 -13
  835. package/script/pkg/commands/set.js +0 -40
  836. package/script/pkg/commands/setbit.js +0 -13
  837. package/script/pkg/commands/setex.js +0 -13
  838. package/script/pkg/commands/setnx.js +0 -13
  839. package/script/pkg/commands/setrange.js +0 -13
  840. package/script/pkg/commands/sinter.js +0 -13
  841. package/script/pkg/commands/sinterstore.js +0 -13
  842. package/script/pkg/commands/sismember.js +0 -13
  843. package/script/pkg/commands/smembers.js +0 -13
  844. package/script/pkg/commands/smismember.js +0 -13
  845. package/script/pkg/commands/smove.js +0 -13
  846. package/script/pkg/commands/spop.js +0 -17
  847. package/script/pkg/commands/srandmember.js +0 -17
  848. package/script/pkg/commands/srem.js +0 -13
  849. package/script/pkg/commands/sscan.js +0 -20
  850. package/script/pkg/commands/strlen.js +0 -13
  851. package/script/pkg/commands/sunion.js +0 -13
  852. package/script/pkg/commands/sunionstore.js +0 -13
  853. package/script/pkg/commands/time.js +0 -13
  854. package/script/pkg/commands/touch.js +0 -13
  855. package/script/pkg/commands/ttl.js +0 -13
  856. package/script/pkg/commands/type.js +0 -13
  857. package/script/pkg/commands/unlink.js +0 -13
  858. package/script/pkg/commands/zadd.js +0 -30
  859. package/script/pkg/commands/zcard.js +0 -13
  860. package/script/pkg/commands/zcount.js +0 -13
  861. package/script/pkg/commands/zdiffstore.js +0 -13
  862. package/script/pkg/commands/zincrby.js +0 -13
  863. package/script/pkg/commands/zinterstore.js +0 -31
  864. package/script/pkg/commands/zlexcount.js +0 -13
  865. package/script/pkg/commands/zmscore.js +0 -14
  866. package/script/pkg/commands/zpopmax.js +0 -17
  867. package/script/pkg/commands/zpopmin.js +0 -17
  868. package/script/pkg/commands/zrange.js +0 -30
  869. package/script/pkg/commands/zrank.js +0 -13
  870. package/script/pkg/commands/zrem.js +0 -13
  871. package/script/pkg/commands/zremrangebylex.js +0 -13
  872. package/script/pkg/commands/zremrangebyrank.js +0 -13
  873. package/script/pkg/commands/zremrangebyscore.js +0 -13
  874. package/script/pkg/commands/zrevrank.js +0 -13
  875. package/script/pkg/commands/zscan.js +0 -20
  876. package/script/pkg/commands/zscore.js +0 -13
  877. package/script/pkg/commands/zunionstore.js +0 -31
  878. package/script/pkg/error.js +0 -13
  879. package/script/pkg/http.js +0 -178
  880. package/script/pkg/pipeline.js +0 -1203
  881. package/script/pkg/redis.js +0 -1194
  882. package/script/pkg/script.js +0 -81
  883. package/script/pkg/types.js +0 -2
  884. package/script/pkg/util.js +0 -35
  885. package/script/platforms/cloudflare.js +0 -97
  886. package/script/platforms/fastly.js +0 -68
  887. package/script/platforms/node_with_fetch.js +0 -113
  888. package/script/platforms/nodejs.js +0 -107
  889. package/script/version.js +0 -4
  890. package/types/deps/deno.land/x/base64@v0.2.1/base.d.ts +0 -5
  891. package/types/deps/deno.land/x/base64@v0.2.1/base64url.d.ts +0 -1
  892. package/types/deps/deno.land/x/sha1@v1.0.3/deps.d.ts +0 -1
  893. package/types/deps/deno.land/x/sha1@v1.0.3/mod.d.ts +0 -26
  894. package/types/deps/denopkg.com/chiefbiiko/std-encoding@v1.0.0/mod.d.ts +0 -3
  895. package/types/pkg/commands/append.d.ts +0 -7
  896. package/types/pkg/commands/bitcount.d.ts +0 -8
  897. package/types/pkg/commands/bitop.d.ts +0 -12
  898. package/types/pkg/commands/bitpos.d.ts +0 -7
  899. package/types/pkg/commands/command.d.ts +0 -37
  900. package/types/pkg/commands/dbsize.d.ts +0 -7
  901. package/types/pkg/commands/decr.d.ts +0 -7
  902. package/types/pkg/commands/decrby.d.ts +0 -7
  903. package/types/pkg/commands/del.d.ts +0 -7
  904. package/types/pkg/commands/echo.d.ts +0 -7
  905. package/types/pkg/commands/eval.d.ts +0 -7
  906. package/types/pkg/commands/evalsha.d.ts +0 -7
  907. package/types/pkg/commands/exists.d.ts +0 -7
  908. package/types/pkg/commands/expire.d.ts +0 -7
  909. package/types/pkg/commands/expireat.d.ts +0 -7
  910. package/types/pkg/commands/flushall.d.ts +0 -9
  911. package/types/pkg/commands/flushdb.d.ts +0 -9
  912. package/types/pkg/commands/get.d.ts +0 -7
  913. package/types/pkg/commands/getbit.d.ts +0 -7
  914. package/types/pkg/commands/getdel.d.ts +0 -7
  915. package/types/pkg/commands/getrange.d.ts +0 -7
  916. package/types/pkg/commands/getset.d.ts +0 -7
  917. package/types/pkg/commands/hdel.d.ts +0 -7
  918. package/types/pkg/commands/hexists.d.ts +0 -7
  919. package/types/pkg/commands/hget.d.ts +0 -7
  920. package/types/pkg/commands/hgetall.d.ts +0 -7
  921. package/types/pkg/commands/hincrby.d.ts +0 -7
  922. package/types/pkg/commands/hincrbyfloat.d.ts +0 -7
  923. package/types/pkg/commands/hkeys.d.ts +0 -7
  924. package/types/pkg/commands/hlen.d.ts +0 -7
  925. package/types/pkg/commands/hmget.d.ts +0 -15
  926. package/types/pkg/commands/hmset.d.ts +0 -9
  927. package/types/pkg/commands/hrandfield.d.ts +0 -9
  928. package/types/pkg/commands/hscan.d.ts +0 -24
  929. package/types/pkg/commands/hset.d.ts +0 -9
  930. package/types/pkg/commands/hsetnx.d.ts +0 -7
  931. package/types/pkg/commands/hstrlen.d.ts +0 -7
  932. package/types/pkg/commands/hvals.d.ts +0 -7
  933. package/types/pkg/commands/incr.d.ts +0 -7
  934. package/types/pkg/commands/incrby.d.ts +0 -7
  935. package/types/pkg/commands/incrbyfloat.d.ts +0 -7
  936. package/types/pkg/commands/keys.d.ts +0 -7
  937. package/types/pkg/commands/lindex.d.ts +0 -4
  938. package/types/pkg/commands/linsert.d.ts +0 -9
  939. package/types/pkg/commands/llen.d.ts +0 -7
  940. package/types/pkg/commands/lmove.d.ts +0 -12
  941. package/types/pkg/commands/lpop.d.ts +0 -7
  942. package/types/pkg/commands/lpos.d.ts +0 -15
  943. package/types/pkg/commands/lpush.d.ts +0 -7
  944. package/types/pkg/commands/lpushx.d.ts +0 -7
  945. package/types/pkg/commands/lrange.d.ts +0 -4
  946. package/types/pkg/commands/lrem.d.ts +0 -4
  947. package/types/pkg/commands/lset.d.ts +0 -4
  948. package/types/pkg/commands/ltrim.d.ts +0 -4
  949. package/types/pkg/commands/mget.d.ts +0 -7
  950. package/types/pkg/commands/mod.d.ts +0 -119
  951. package/types/pkg/commands/mset.d.ts +0 -9
  952. package/types/pkg/commands/msetnx.d.ts +0 -9
  953. package/types/pkg/commands/persist.d.ts +0 -7
  954. package/types/pkg/commands/pexpire.d.ts +0 -7
  955. package/types/pkg/commands/pexpireat.d.ts +0 -7
  956. package/types/pkg/commands/ping.d.ts +0 -7
  957. package/types/pkg/commands/psetex.d.ts +0 -7
  958. package/types/pkg/commands/pttl.d.ts +0 -7
  959. package/types/pkg/commands/publish.d.ts +0 -7
  960. package/types/pkg/commands/randomkey.d.ts +0 -7
  961. package/types/pkg/commands/rename.d.ts +0 -7
  962. package/types/pkg/commands/renamenx.d.ts +0 -7
  963. package/types/pkg/commands/rpop.d.ts +0 -7
  964. package/types/pkg/commands/rpush.d.ts +0 -7
  965. package/types/pkg/commands/rpushx.d.ts +0 -7
  966. package/types/pkg/commands/sadd.d.ts +0 -7
  967. package/types/pkg/commands/scan.d.ts +0 -18
  968. package/types/pkg/commands/scard.d.ts +0 -7
  969. package/types/pkg/commands/script_exists.d.ts +0 -7
  970. package/types/pkg/commands/script_flush.d.ts +0 -14
  971. package/types/pkg/commands/script_load.d.ts +0 -7
  972. package/types/pkg/commands/sdiff.d.ts +0 -7
  973. package/types/pkg/commands/sdiffstore.d.ts +0 -7
  974. package/types/pkg/commands/set.d.ts +0 -55
  975. package/types/pkg/commands/setbit.d.ts +0 -7
  976. package/types/pkg/commands/setex.d.ts +0 -7
  977. package/types/pkg/commands/setnx.d.ts +0 -7
  978. package/types/pkg/commands/setrange.d.ts +0 -7
  979. package/types/pkg/commands/sinter.d.ts +0 -7
  980. package/types/pkg/commands/sinterstore.d.ts +0 -7
  981. package/types/pkg/commands/sismember.d.ts +0 -7
  982. package/types/pkg/commands/smembers.d.ts +0 -7
  983. package/types/pkg/commands/smismember.d.ts +0 -7
  984. package/types/pkg/commands/smove.d.ts +0 -7
  985. package/types/pkg/commands/spop.d.ts +0 -7
  986. package/types/pkg/commands/srandmember.d.ts +0 -7
  987. package/types/pkg/commands/srem.d.ts +0 -7
  988. package/types/pkg/commands/sscan.d.ts +0 -24
  989. package/types/pkg/commands/strlen.d.ts +0 -7
  990. package/types/pkg/commands/sunion.d.ts +0 -7
  991. package/types/pkg/commands/sunionstore.d.ts +0 -7
  992. package/types/pkg/commands/time.d.ts +0 -7
  993. package/types/pkg/commands/touch.d.ts +0 -7
  994. package/types/pkg/commands/ttl.d.ts +0 -7
  995. package/types/pkg/commands/type.d.ts +0 -8
  996. package/types/pkg/commands/unlink.d.ts +0 -7
  997. package/types/pkg/commands/zadd.d.ts +0 -35
  998. package/types/pkg/commands/zcard.d.ts +0 -7
  999. package/types/pkg/commands/zcount.d.ts +0 -7
  1000. package/types/pkg/commands/zdiffstore.d.ts +0 -7
  1001. package/types/pkg/commands/zincrby.d.ts +0 -7
  1002. package/types/pkg/commands/zinterstore.d.ts +0 -30
  1003. package/types/pkg/commands/zlexcount.d.ts +0 -7
  1004. package/types/pkg/commands/zmscore.d.ts +0 -7
  1005. package/types/pkg/commands/zpopmax.d.ts +0 -7
  1006. package/types/pkg/commands/zpopmin.d.ts +0 -7
  1007. package/types/pkg/commands/zrange.d.ts +0 -42
  1008. package/types/pkg/commands/zrank.d.ts +0 -7
  1009. package/types/pkg/commands/zrem.d.ts +0 -7
  1010. package/types/pkg/commands/zremrangebylex.d.ts +0 -7
  1011. package/types/pkg/commands/zremrangebyrank.d.ts +0 -7
  1012. package/types/pkg/commands/zremrangebyscore.d.ts +0 -7
  1013. package/types/pkg/commands/zrevrank.d.ts +0 -7
  1014. package/types/pkg/commands/zscan.d.ts +0 -24
  1015. package/types/pkg/commands/zscore.d.ts +0 -7
  1016. package/types/pkg/commands/zunionstore.d.ts +0 -30
  1017. package/types/pkg/error.d.ts +0 -6
  1018. package/types/pkg/http.d.ts +0 -88
  1019. package/types/pkg/pipeline.d.ts +0 -577
  1020. package/types/pkg/redis.d.ts +0 -572
  1021. package/types/pkg/script.d.ts +0 -42
  1022. package/types/pkg/types.d.ts +0 -18
  1023. package/types/pkg/util.d.ts +0 -1
  1024. package/types/platforms/cloudflare.d.ts +0 -43
  1025. package/types/platforms/fastly.d.ts +0 -41
  1026. package/types/platforms/node_with_fetch.d.ts +0 -63
  1027. package/types/platforms/nodejs.d.ts +0 -78
  1028. package/types/version.d.ts +0 -1
@@ -1,1203 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Pipeline = void 0;
4
- const mod_js_1 = require("./commands/mod.js");
5
- const error_js_1 = require("./error.js");
6
- const zmscore_js_1 = require("./commands/zmscore.js");
7
- const hrandfield_js_1 = require("./commands/hrandfield.js");
8
- const zdiffstore_js_1 = require("./commands/zdiffstore.js");
9
- /**
10
- * Upstash REST API supports command pipelining to send multiple commands in
11
- * batch, instead of sending each command one by one and waiting for a response.
12
- * When using pipelines, several commands are sent using a single HTTP request,
13
- * and a single JSON array response is returned. Each item in the response array
14
- * corresponds to the command in the same order within the pipeline.
15
- *
16
- * **NOTE:**
17
- *
18
- * Execution of the pipeline is not atomic. Even though each command in
19
- * the pipeline will be executed in order, commands sent by other clients can
20
- * interleave with the pipeline.
21
- *
22
- * **Examples:**
23
- *
24
- * ```ts
25
- * const p = redis.pipeline() // or redis.multi()
26
- * p.set("key","value")
27
- * p.get("key")
28
- * const res = await p.exec()
29
- * ```
30
- *
31
- * You can also chain commands together
32
- * ```ts
33
- * const p = redis.pipeline()
34
- * const res = await p.set("key","value").get("key").exec()
35
- * ```
36
- *
37
- * It's not possible to infer correct types with a dynamic pipeline, so you can
38
- * override the response type manually:
39
- * ```ts
40
- * redis.pipeline()
41
- * .set("key", { greeting: "hello"})
42
- * .get("key")
43
- * .exec<["OK", { greeting: string } ]>()
44
- *
45
- * ```
46
- */
47
- class Pipeline {
48
- constructor(opts) {
49
- Object.defineProperty(this, "client", {
50
- enumerable: true,
51
- configurable: true,
52
- writable: true,
53
- value: void 0
54
- });
55
- Object.defineProperty(this, "commands", {
56
- enumerable: true,
57
- configurable: true,
58
- writable: true,
59
- value: void 0
60
- });
61
- Object.defineProperty(this, "commandOptions", {
62
- enumerable: true,
63
- configurable: true,
64
- writable: true,
65
- value: void 0
66
- });
67
- Object.defineProperty(this, "multiExec", {
68
- enumerable: true,
69
- configurable: true,
70
- writable: true,
71
- value: void 0
72
- });
73
- /**
74
- * Send the pipeline request to upstash.
75
- *
76
- * Returns an array with the results of all pipelined commands.
77
- *
78
- * You can define a return type manually to make working in typescript easier
79
- * ```ts
80
- * redis.pipeline().get("key").exec<[{ greeting: string }]>()
81
- * ```
82
- */
83
- Object.defineProperty(this, "exec", {
84
- enumerable: true,
85
- configurable: true,
86
- writable: true,
87
- value: async () => {
88
- if (this.commands.length === 0) {
89
- throw new Error("Pipeline is empty");
90
- }
91
- const path = this.multiExec ? ["multi-exec"] : ["pipeline"];
92
- const res = (await this.client.request({
93
- path,
94
- body: Object.values(this.commands).map((c) => c.command),
95
- }));
96
- return res.map(({ error, result }, i) => {
97
- if (error) {
98
- throw new error_js_1.UpstashError(`Command ${i + 1} [ ${this.commands[i].command[0]} ] failed: ${error}`);
99
- }
100
- return this.commands[i].deserialize(result);
101
- });
102
- }
103
- });
104
- /**
105
- * @see https://redis.io/commands/append
106
- */
107
- Object.defineProperty(this, "append", {
108
- enumerable: true,
109
- configurable: true,
110
- writable: true,
111
- value: (...args) => this.chain(new mod_js_1.AppendCommand(args, this.commandOptions))
112
- });
113
- /**
114
- * @see https://redis.io/commands/bitcount
115
- */
116
- Object.defineProperty(this, "bitcount", {
117
- enumerable: true,
118
- configurable: true,
119
- writable: true,
120
- value: (...args) => this.chain(new mod_js_1.BitCountCommand(args, this.commandOptions))
121
- });
122
- /**
123
- * @see https://redis.io/commands/bitop
124
- */
125
- Object.defineProperty(this, "bitop", {
126
- enumerable: true,
127
- configurable: true,
128
- writable: true,
129
- value: (op, destinationKey, sourceKey, ...sourceKeys) => this.chain(new mod_js_1.BitOpCommand([op, destinationKey, sourceKey, ...sourceKeys], this.commandOptions))
130
- });
131
- /**
132
- * @see https://redis.io/commands/bitpos
133
- */
134
- Object.defineProperty(this, "bitpos", {
135
- enumerable: true,
136
- configurable: true,
137
- writable: true,
138
- value: (...args) => this.chain(new mod_js_1.BitPosCommand(args, this.commandOptions))
139
- });
140
- /**
141
- * @see https://redis.io/commands/zdiffstore
142
- */
143
- Object.defineProperty(this, "zdiffstore", {
144
- enumerable: true,
145
- configurable: true,
146
- writable: true,
147
- value: (...args) => this.chain(new zdiffstore_js_1.ZDiffStoreCommand(args, this.commandOptions))
148
- });
149
- /**
150
- * @see https://redis.io/commands/dbsize
151
- */
152
- Object.defineProperty(this, "dbsize", {
153
- enumerable: true,
154
- configurable: true,
155
- writable: true,
156
- value: () => this.chain(new mod_js_1.DBSizeCommand(this.commandOptions))
157
- });
158
- /**
159
- * @see https://redis.io/commands/decr
160
- */
161
- Object.defineProperty(this, "decr", {
162
- enumerable: true,
163
- configurable: true,
164
- writable: true,
165
- value: (...args) => this.chain(new mod_js_1.DecrCommand(args, this.commandOptions))
166
- });
167
- /**
168
- * @see https://redis.io/commands/decrby
169
- */
170
- Object.defineProperty(this, "decrby", {
171
- enumerable: true,
172
- configurable: true,
173
- writable: true,
174
- value: (...args) => this.chain(new mod_js_1.DecrByCommand(args, this.commandOptions))
175
- });
176
- /**
177
- * @see https://redis.io/commands/del
178
- */
179
- Object.defineProperty(this, "del", {
180
- enumerable: true,
181
- configurable: true,
182
- writable: true,
183
- value: (...args) => this.chain(new mod_js_1.DelCommand(args, this.commandOptions))
184
- });
185
- /**
186
- * @see https://redis.io/commands/echo
187
- */
188
- Object.defineProperty(this, "echo", {
189
- enumerable: true,
190
- configurable: true,
191
- writable: true,
192
- value: (...args) => this.chain(new mod_js_1.EchoCommand(args, this.commandOptions))
193
- });
194
- /**
195
- * @see https://redis.io/commands/eval
196
- */
197
- Object.defineProperty(this, "eval", {
198
- enumerable: true,
199
- configurable: true,
200
- writable: true,
201
- value: (...args) => this.chain(new mod_js_1.EvalCommand(args, this.commandOptions))
202
- });
203
- /**
204
- * @see https://redis.io/commands/evalsha
205
- */
206
- Object.defineProperty(this, "evalsha", {
207
- enumerable: true,
208
- configurable: true,
209
- writable: true,
210
- value: (...args) => this.chain(new mod_js_1.EvalshaCommand(args, this.commandOptions))
211
- });
212
- /**
213
- * @see https://redis.io/commands/exists
214
- */
215
- Object.defineProperty(this, "exists", {
216
- enumerable: true,
217
- configurable: true,
218
- writable: true,
219
- value: (...args) => this.chain(new mod_js_1.ExistsCommand(args, this.commandOptions))
220
- });
221
- /**
222
- * @see https://redis.io/commands/expire
223
- */
224
- Object.defineProperty(this, "expire", {
225
- enumerable: true,
226
- configurable: true,
227
- writable: true,
228
- value: (...args) => this.chain(new mod_js_1.ExpireCommand(args, this.commandOptions))
229
- });
230
- /**
231
- * @see https://redis.io/commands/expireat
232
- */
233
- Object.defineProperty(this, "expireat", {
234
- enumerable: true,
235
- configurable: true,
236
- writable: true,
237
- value: (...args) => this.chain(new mod_js_1.ExpireAtCommand(args, this.commandOptions))
238
- });
239
- /**
240
- * @see https://redis.io/commands/flushall
241
- */
242
- Object.defineProperty(this, "flushall", {
243
- enumerable: true,
244
- configurable: true,
245
- writable: true,
246
- value: (args) => this.chain(new mod_js_1.FlushAllCommand(args, this.commandOptions))
247
- });
248
- /**
249
- * @see https://redis.io/commands/flushdb
250
- */
251
- Object.defineProperty(this, "flushdb", {
252
- enumerable: true,
253
- configurable: true,
254
- writable: true,
255
- value: (...args) => this.chain(new mod_js_1.FlushDBCommand(args, this.commandOptions))
256
- });
257
- /**
258
- * @see https://redis.io/commands/get
259
- */
260
- Object.defineProperty(this, "get", {
261
- enumerable: true,
262
- configurable: true,
263
- writable: true,
264
- value: (...args) => this.chain(new mod_js_1.GetCommand(args, this.commandOptions))
265
- });
266
- /**
267
- * @see https://redis.io/commands/getbit
268
- */
269
- Object.defineProperty(this, "getbit", {
270
- enumerable: true,
271
- configurable: true,
272
- writable: true,
273
- value: (...args) => this.chain(new mod_js_1.GetBitCommand(args, this.commandOptions))
274
- });
275
- /**
276
- * @see https://redis.io/commands/getdel
277
- */
278
- Object.defineProperty(this, "getdel", {
279
- enumerable: true,
280
- configurable: true,
281
- writable: true,
282
- value: (...args) => this.chain(new mod_js_1.GetDelCommand(args, this.commandOptions))
283
- });
284
- /**
285
- * @see https://redis.io/commands/getrange
286
- */
287
- Object.defineProperty(this, "getrange", {
288
- enumerable: true,
289
- configurable: true,
290
- writable: true,
291
- value: (...args) => this.chain(new mod_js_1.GetRangeCommand(args, this.commandOptions))
292
- });
293
- /**
294
- * @see https://redis.io/commands/getset
295
- */
296
- Object.defineProperty(this, "getset", {
297
- enumerable: true,
298
- configurable: true,
299
- writable: true,
300
- value: (key, value) => this.chain(new mod_js_1.GetSetCommand([key, value], this.commandOptions))
301
- });
302
- /**
303
- * @see https://redis.io/commands/hdel
304
- */
305
- Object.defineProperty(this, "hdel", {
306
- enumerable: true,
307
- configurable: true,
308
- writable: true,
309
- value: (...args) => this.chain(new mod_js_1.HDelCommand(args, this.commandOptions))
310
- });
311
- /**
312
- * @see https://redis.io/commands/hexists
313
- */
314
- Object.defineProperty(this, "hexists", {
315
- enumerable: true,
316
- configurable: true,
317
- writable: true,
318
- value: (...args) => this.chain(new mod_js_1.HExistsCommand(args, this.commandOptions))
319
- });
320
- /**
321
- * @see https://redis.io/commands/hget
322
- */
323
- Object.defineProperty(this, "hget", {
324
- enumerable: true,
325
- configurable: true,
326
- writable: true,
327
- value: (...args) => this.chain(new mod_js_1.HGetCommand(args, this.commandOptions))
328
- });
329
- /**
330
- * @see https://redis.io/commands/hgetall
331
- */
332
- Object.defineProperty(this, "hgetall", {
333
- enumerable: true,
334
- configurable: true,
335
- writable: true,
336
- value: (...args) => this.chain(new mod_js_1.HGetAllCommand(args, this.commandOptions))
337
- });
338
- /**
339
- * @see https://redis.io/commands/hincrby
340
- */
341
- Object.defineProperty(this, "hincrby", {
342
- enumerable: true,
343
- configurable: true,
344
- writable: true,
345
- value: (...args) => this.chain(new mod_js_1.HIncrByCommand(args, this.commandOptions))
346
- });
347
- /**
348
- * @see https://redis.io/commands/hincrbyfloat
349
- */
350
- Object.defineProperty(this, "hincrbyfloat", {
351
- enumerable: true,
352
- configurable: true,
353
- writable: true,
354
- value: (...args) => this.chain(new mod_js_1.HIncrByFloatCommand(args, this.commandOptions))
355
- });
356
- /**
357
- * @see https://redis.io/commands/hkeys
358
- */
359
- Object.defineProperty(this, "hkeys", {
360
- enumerable: true,
361
- configurable: true,
362
- writable: true,
363
- value: (...args) => this.chain(new mod_js_1.HKeysCommand(args, this.commandOptions))
364
- });
365
- /**
366
- * @see https://redis.io/commands/hlen
367
- */
368
- Object.defineProperty(this, "hlen", {
369
- enumerable: true,
370
- configurable: true,
371
- writable: true,
372
- value: (...args) => this.chain(new mod_js_1.HLenCommand(args, this.commandOptions))
373
- });
374
- /**
375
- * @see https://redis.io/commands/hmget
376
- */
377
- Object.defineProperty(this, "hmget", {
378
- enumerable: true,
379
- configurable: true,
380
- writable: true,
381
- value: (...args) => this.chain(new mod_js_1.HMGetCommand(args, this.commandOptions))
382
- });
383
- /**
384
- * @see https://redis.io/commands/hmset
385
- */
386
- Object.defineProperty(this, "hmset", {
387
- enumerable: true,
388
- configurable: true,
389
- writable: true,
390
- value: (key, kv) => this.chain(new mod_js_1.HMSetCommand([key, kv], this.commandOptions))
391
- });
392
- /**
393
- * @see https://redis.io/commands/hrandfield
394
- */
395
- Object.defineProperty(this, "hrandfield", {
396
- enumerable: true,
397
- configurable: true,
398
- writable: true,
399
- value: (key, count, withValues) => this.chain(new hrandfield_js_1.HRandFieldCommand([key, count, withValues], this.commandOptions))
400
- });
401
- /**
402
- * @see https://redis.io/commands/hscan
403
- */
404
- Object.defineProperty(this, "hscan", {
405
- enumerable: true,
406
- configurable: true,
407
- writable: true,
408
- value: (...args) => this.chain(new mod_js_1.HScanCommand(args, this.commandOptions))
409
- });
410
- /**
411
- * @see https://redis.io/commands/hset
412
- */
413
- Object.defineProperty(this, "hset", {
414
- enumerable: true,
415
- configurable: true,
416
- writable: true,
417
- value: (key, kv) => this.chain(new mod_js_1.HSetCommand([key, kv], this.commandOptions))
418
- });
419
- /**
420
- * @see https://redis.io/commands/hsetnx
421
- */
422
- Object.defineProperty(this, "hsetnx", {
423
- enumerable: true,
424
- configurable: true,
425
- writable: true,
426
- value: (key, field, value) => this.chain(new mod_js_1.HSetNXCommand([key, field, value], this.commandOptions))
427
- });
428
- /**
429
- * @see https://redis.io/commands/hstrlen
430
- */
431
- Object.defineProperty(this, "hstrlen", {
432
- enumerable: true,
433
- configurable: true,
434
- writable: true,
435
- value: (...args) => this.chain(new mod_js_1.HStrLenCommand(args, this.commandOptions))
436
- });
437
- /**
438
- * @see https://redis.io/commands/hvals
439
- */
440
- Object.defineProperty(this, "hvals", {
441
- enumerable: true,
442
- configurable: true,
443
- writable: true,
444
- value: (...args) => this.chain(new mod_js_1.HValsCommand(args, this.commandOptions))
445
- });
446
- /**
447
- * @see https://redis.io/commands/incr
448
- */
449
- Object.defineProperty(this, "incr", {
450
- enumerable: true,
451
- configurable: true,
452
- writable: true,
453
- value: (...args) => this.chain(new mod_js_1.IncrCommand(args, this.commandOptions))
454
- });
455
- /**
456
- * @see https://redis.io/commands/incrby
457
- */
458
- Object.defineProperty(this, "incrby", {
459
- enumerable: true,
460
- configurable: true,
461
- writable: true,
462
- value: (...args) => this.chain(new mod_js_1.IncrByCommand(args, this.commandOptions))
463
- });
464
- /**
465
- * @see https://redis.io/commands/incrbyfloat
466
- */
467
- Object.defineProperty(this, "incrbyfloat", {
468
- enumerable: true,
469
- configurable: true,
470
- writable: true,
471
- value: (...args) => this.chain(new mod_js_1.IncrByFloatCommand(args, this.commandOptions))
472
- });
473
- /**
474
- * @see https://redis.io/commands/keys
475
- */
476
- Object.defineProperty(this, "keys", {
477
- enumerable: true,
478
- configurable: true,
479
- writable: true,
480
- value: (...args) => this.chain(new mod_js_1.KeysCommand(args, this.commandOptions))
481
- });
482
- /**
483
- * @see https://redis.io/commands/lindex
484
- */
485
- Object.defineProperty(this, "lindex", {
486
- enumerable: true,
487
- configurable: true,
488
- writable: true,
489
- value: (...args) => this.chain(new mod_js_1.LIndexCommand(args, this.commandOptions))
490
- });
491
- /**
492
- * @see https://redis.io/commands/linsert
493
- */
494
- Object.defineProperty(this, "linsert", {
495
- enumerable: true,
496
- configurable: true,
497
- writable: true,
498
- value: (key, direction, pivot, value) => this.chain(new mod_js_1.LInsertCommand([key, direction, pivot, value], this.commandOptions))
499
- });
500
- /**
501
- * @see https://redis.io/commands/llen
502
- */
503
- Object.defineProperty(this, "llen", {
504
- enumerable: true,
505
- configurable: true,
506
- writable: true,
507
- value: (...args) => this.chain(new mod_js_1.LLenCommand(args, this.commandOptions))
508
- });
509
- /**
510
- * @see https://redis.io/commands/lmove
511
- */
512
- Object.defineProperty(this, "lmove", {
513
- enumerable: true,
514
- configurable: true,
515
- writable: true,
516
- value: (...args) => this.chain(new mod_js_1.LMoveCommand(args, this.commandOptions))
517
- });
518
- /**
519
- * @see https://redis.io/commands/lpop
520
- */
521
- Object.defineProperty(this, "lpop", {
522
- enumerable: true,
523
- configurable: true,
524
- writable: true,
525
- value: (...args) => this.chain(new mod_js_1.LPopCommand(args, this.commandOptions))
526
- });
527
- /**
528
- * @see https://redis.io/commands/lpos
529
- */
530
- Object.defineProperty(this, "lpos", {
531
- enumerable: true,
532
- configurable: true,
533
- writable: true,
534
- value: (...args) => this.chain(new mod_js_1.LPosCommand(args, this.commandOptions))
535
- });
536
- /**
537
- * @see https://redis.io/commands/lpush
538
- */
539
- Object.defineProperty(this, "lpush", {
540
- enumerable: true,
541
- configurable: true,
542
- writable: true,
543
- value: (key, ...elements) => this.chain(new mod_js_1.LPushCommand([key, ...elements], this.commandOptions))
544
- });
545
- /**
546
- * @see https://redis.io/commands/lpushx
547
- */
548
- Object.defineProperty(this, "lpushx", {
549
- enumerable: true,
550
- configurable: true,
551
- writable: true,
552
- value: (key, ...elements) => this.chain(new mod_js_1.LPushXCommand([key, ...elements], this.commandOptions))
553
- });
554
- /**
555
- * @see https://redis.io/commands/lrange
556
- */
557
- Object.defineProperty(this, "lrange", {
558
- enumerable: true,
559
- configurable: true,
560
- writable: true,
561
- value: (...args) => this.chain(new mod_js_1.LRangeCommand(args, this.commandOptions))
562
- });
563
- /**
564
- * @see https://redis.io/commands/lrem
565
- */
566
- Object.defineProperty(this, "lrem", {
567
- enumerable: true,
568
- configurable: true,
569
- writable: true,
570
- value: (key, count, value) => this.chain(new mod_js_1.LRemCommand([key, count, value], this.commandOptions))
571
- });
572
- /**
573
- * @see https://redis.io/commands/lset
574
- */
575
- Object.defineProperty(this, "lset", {
576
- enumerable: true,
577
- configurable: true,
578
- writable: true,
579
- value: (key, index, value) => this.chain(new mod_js_1.LSetCommand([key, index, value], this.commandOptions))
580
- });
581
- /**
582
- * @see https://redis.io/commands/ltrim
583
- */
584
- Object.defineProperty(this, "ltrim", {
585
- enumerable: true,
586
- configurable: true,
587
- writable: true,
588
- value: (...args) => this.chain(new mod_js_1.LTrimCommand(args, this.commandOptions))
589
- });
590
- /**
591
- * @see https://redis.io/commands/mget
592
- */
593
- Object.defineProperty(this, "mget", {
594
- enumerable: true,
595
- configurable: true,
596
- writable: true,
597
- value: (...args) => this.chain(new mod_js_1.MGetCommand(args, this.commandOptions))
598
- });
599
- /**
600
- * @see https://redis.io/commands/mset
601
- */
602
- Object.defineProperty(this, "mset", {
603
- enumerable: true,
604
- configurable: true,
605
- writable: true,
606
- value: (kv) => this.chain(new mod_js_1.MSetCommand([kv], this.commandOptions))
607
- });
608
- /**
609
- * @see https://redis.io/commands/msetnx
610
- */
611
- Object.defineProperty(this, "msetnx", {
612
- enumerable: true,
613
- configurable: true,
614
- writable: true,
615
- value: (kv) => this.chain(new mod_js_1.MSetNXCommand([kv], this.commandOptions))
616
- });
617
- /**
618
- * @see https://redis.io/commands/persist
619
- */
620
- Object.defineProperty(this, "persist", {
621
- enumerable: true,
622
- configurable: true,
623
- writable: true,
624
- value: (...args) => this.chain(new mod_js_1.PersistCommand(args, this.commandOptions))
625
- });
626
- /**
627
- * @see https://redis.io/commands/pexpire
628
- */
629
- Object.defineProperty(this, "pexpire", {
630
- enumerable: true,
631
- configurable: true,
632
- writable: true,
633
- value: (...args) => this.chain(new mod_js_1.PExpireCommand(args, this.commandOptions))
634
- });
635
- /**
636
- * @see https://redis.io/commands/pexpireat
637
- */
638
- Object.defineProperty(this, "pexpireat", {
639
- enumerable: true,
640
- configurable: true,
641
- writable: true,
642
- value: (...args) => this.chain(new mod_js_1.PExpireAtCommand(args, this.commandOptions))
643
- });
644
- /**
645
- * @see https://redis.io/commands/ping
646
- */
647
- Object.defineProperty(this, "ping", {
648
- enumerable: true,
649
- configurable: true,
650
- writable: true,
651
- value: (args) => this.chain(new mod_js_1.PingCommand(args, this.commandOptions))
652
- });
653
- /**
654
- * @see https://redis.io/commands/psetex
655
- */
656
- Object.defineProperty(this, "psetex", {
657
- enumerable: true,
658
- configurable: true,
659
- writable: true,
660
- value: (key, ttl, value) => this.chain(new mod_js_1.PSetEXCommand([key, ttl, value], this.commandOptions))
661
- });
662
- /**
663
- * @see https://redis.io/commands/pttl
664
- */
665
- Object.defineProperty(this, "pttl", {
666
- enumerable: true,
667
- configurable: true,
668
- writable: true,
669
- value: (...args) => this.chain(new mod_js_1.PTtlCommand(args, this.commandOptions))
670
- });
671
- /**
672
- * @see https://redis.io/commands/publish
673
- */
674
- Object.defineProperty(this, "publish", {
675
- enumerable: true,
676
- configurable: true,
677
- writable: true,
678
- value: (...args) => this.chain(new mod_js_1.PublishCommand(args, this.commandOptions))
679
- });
680
- /**
681
- * @see https://redis.io/commands/randomkey
682
- */
683
- Object.defineProperty(this, "randomkey", {
684
- enumerable: true,
685
- configurable: true,
686
- writable: true,
687
- value: () => this.chain(new mod_js_1.RandomKeyCommand(this.commandOptions))
688
- });
689
- /**
690
- * @see https://redis.io/commands/rename
691
- */
692
- Object.defineProperty(this, "rename", {
693
- enumerable: true,
694
- configurable: true,
695
- writable: true,
696
- value: (...args) => this.chain(new mod_js_1.RenameCommand(args, this.commandOptions))
697
- });
698
- /**
699
- * @see https://redis.io/commands/renamenx
700
- */
701
- Object.defineProperty(this, "renamenx", {
702
- enumerable: true,
703
- configurable: true,
704
- writable: true,
705
- value: (...args) => this.chain(new mod_js_1.RenameNXCommand(args, this.commandOptions))
706
- });
707
- /**
708
- * @see https://redis.io/commands/rpop
709
- */
710
- Object.defineProperty(this, "rpop", {
711
- enumerable: true,
712
- configurable: true,
713
- writable: true,
714
- value: (...args) => this.chain(new mod_js_1.RPopCommand(args, this.commandOptions))
715
- });
716
- /**
717
- * @see https://redis.io/commands/rpush
718
- */
719
- Object.defineProperty(this, "rpush", {
720
- enumerable: true,
721
- configurable: true,
722
- writable: true,
723
- value: (key, ...elements) => this.chain(new mod_js_1.RPushCommand([key, ...elements], this.commandOptions))
724
- });
725
- /**
726
- * @see https://redis.io/commands/rpushx
727
- */
728
- Object.defineProperty(this, "rpushx", {
729
- enumerable: true,
730
- configurable: true,
731
- writable: true,
732
- value: (key, ...elements) => this.chain(new mod_js_1.RPushXCommand([key, ...elements], this.commandOptions))
733
- });
734
- /**
735
- * @see https://redis.io/commands/sadd
736
- */
737
- Object.defineProperty(this, "sadd", {
738
- enumerable: true,
739
- configurable: true,
740
- writable: true,
741
- value: (key, ...members) => this.chain(new mod_js_1.SAddCommand([key, ...members], this.commandOptions))
742
- });
743
- /**
744
- * @see https://redis.io/commands/scan
745
- */
746
- Object.defineProperty(this, "scan", {
747
- enumerable: true,
748
- configurable: true,
749
- writable: true,
750
- value: (...args) => this.chain(new mod_js_1.ScanCommand(args, this.commandOptions))
751
- });
752
- /**
753
- * @see https://redis.io/commands/scard
754
- */
755
- Object.defineProperty(this, "scard", {
756
- enumerable: true,
757
- configurable: true,
758
- writable: true,
759
- value: (...args) => this.chain(new mod_js_1.SCardCommand(args, this.commandOptions))
760
- });
761
- /**
762
- * @see https://redis.io/commands/script-exists
763
- */
764
- Object.defineProperty(this, "scriptExists", {
765
- enumerable: true,
766
- configurable: true,
767
- writable: true,
768
- value: (...args) => this.chain(new mod_js_1.ScriptExistsCommand(args, this.commandOptions))
769
- });
770
- /**
771
- * @see https://redis.io/commands/script-flush
772
- */
773
- Object.defineProperty(this, "scriptFlush", {
774
- enumerable: true,
775
- configurable: true,
776
- writable: true,
777
- value: (...args) => this.chain(new mod_js_1.ScriptFlushCommand(args, this.commandOptions))
778
- });
779
- /**
780
- * @see https://redis.io/commands/script-load
781
- */
782
- Object.defineProperty(this, "scriptLoad", {
783
- enumerable: true,
784
- configurable: true,
785
- writable: true,
786
- value: (...args) => this.chain(new mod_js_1.ScriptLoadCommand(args, this.commandOptions))
787
- });
788
- /*)*
789
- * @see https://redis.io/commands/sdiff
790
- */
791
- Object.defineProperty(this, "sdiff", {
792
- enumerable: true,
793
- configurable: true,
794
- writable: true,
795
- value: (...args) => this.chain(new mod_js_1.SDiffCommand(args, this.commandOptions))
796
- });
797
- /**
798
- * @see https://redis.io/commands/sdiffstore
799
- */
800
- Object.defineProperty(this, "sdiffstore", {
801
- enumerable: true,
802
- configurable: true,
803
- writable: true,
804
- value: (...args) => this.chain(new mod_js_1.SDiffStoreCommand(args, this.commandOptions))
805
- });
806
- /**
807
- * @see https://redis.io/commands/set
808
- */
809
- Object.defineProperty(this, "set", {
810
- enumerable: true,
811
- configurable: true,
812
- writable: true,
813
- value: (key, value, opts) => this.chain(new mod_js_1.SetCommand([key, value, opts], this.commandOptions))
814
- });
815
- /**
816
- * @see https://redis.io/commands/setbit
817
- */
818
- Object.defineProperty(this, "setbit", {
819
- enumerable: true,
820
- configurable: true,
821
- writable: true,
822
- value: (...args) => this.chain(new mod_js_1.SetBitCommand(args, this.commandOptions))
823
- });
824
- /**
825
- * @see https://redis.io/commands/setex
826
- */
827
- Object.defineProperty(this, "setex", {
828
- enumerable: true,
829
- configurable: true,
830
- writable: true,
831
- value: (key, ttl, value) => this.chain(new mod_js_1.SetExCommand([key, ttl, value], this.commandOptions))
832
- });
833
- /**
834
- * @see https://redis.io/commands/setnx
835
- */
836
- Object.defineProperty(this, "setnx", {
837
- enumerable: true,
838
- configurable: true,
839
- writable: true,
840
- value: (key, value) => this.chain(new mod_js_1.SetNxCommand([key, value], this.commandOptions))
841
- });
842
- /**
843
- * @see https://redis.io/commands/setrange
844
- */
845
- Object.defineProperty(this, "setrange", {
846
- enumerable: true,
847
- configurable: true,
848
- writable: true,
849
- value: (...args) => this.chain(new mod_js_1.SetRangeCommand(args, this.commandOptions))
850
- });
851
- /**
852
- * @see https://redis.io/commands/sinter
853
- */
854
- Object.defineProperty(this, "sinter", {
855
- enumerable: true,
856
- configurable: true,
857
- writable: true,
858
- value: (...args) => this.chain(new mod_js_1.SInterCommand(args, this.commandOptions))
859
- });
860
- /**
861
- * @see https://redis.io/commands/sinterstore
862
- */
863
- Object.defineProperty(this, "sinterstore", {
864
- enumerable: true,
865
- configurable: true,
866
- writable: true,
867
- value: (...args) => this.chain(new mod_js_1.SInterStoreCommand(args, this.commandOptions))
868
- });
869
- /**
870
- * @see https://redis.io/commands/sismember
871
- */
872
- Object.defineProperty(this, "sismember", {
873
- enumerable: true,
874
- configurable: true,
875
- writable: true,
876
- value: (key, member) => this.chain(new mod_js_1.SIsMemberCommand([key, member], this.commandOptions))
877
- });
878
- /**
879
- * @see https://redis.io/commands/smembers
880
- */
881
- Object.defineProperty(this, "smembers", {
882
- enumerable: true,
883
- configurable: true,
884
- writable: true,
885
- value: (...args) => this.chain(new mod_js_1.SMembersCommand(args, this.commandOptions))
886
- });
887
- /**
888
- * @see https://redis.io/commands/smismember
889
- */
890
- Object.defineProperty(this, "smismember", {
891
- enumerable: true,
892
- configurable: true,
893
- writable: true,
894
- value: (key, members) => this.chain(new mod_js_1.SMIsMemberCommand([key, members], this.commandOptions))
895
- });
896
- /**
897
- * @see https://redis.io/commands/smove
898
- */
899
- Object.defineProperty(this, "smove", {
900
- enumerable: true,
901
- configurable: true,
902
- writable: true,
903
- value: (source, destination, member) => this.chain(new mod_js_1.SMoveCommand([source, destination, member], this.commandOptions))
904
- });
905
- /**
906
- * @see https://redis.io/commands/spop
907
- */
908
- Object.defineProperty(this, "spop", {
909
- enumerable: true,
910
- configurable: true,
911
- writable: true,
912
- value: (...args) => this.chain(new mod_js_1.SPopCommand(args, this.commandOptions))
913
- });
914
- /**
915
- * @see https://redis.io/commands/srandmember
916
- */
917
- Object.defineProperty(this, "srandmember", {
918
- enumerable: true,
919
- configurable: true,
920
- writable: true,
921
- value: (...args) => this.chain(new mod_js_1.SRandMemberCommand(args, this.commandOptions))
922
- });
923
- /**
924
- * @see https://redis.io/commands/srem
925
- */
926
- Object.defineProperty(this, "srem", {
927
- enumerable: true,
928
- configurable: true,
929
- writable: true,
930
- value: (key, ...members) => this.chain(new mod_js_1.SRemCommand([key, ...members], this.commandOptions))
931
- });
932
- /**
933
- * @see https://redis.io/commands/sscan
934
- */
935
- Object.defineProperty(this, "sscan", {
936
- enumerable: true,
937
- configurable: true,
938
- writable: true,
939
- value: (...args) => this.chain(new mod_js_1.SScanCommand(args, this.commandOptions))
940
- });
941
- /**
942
- * @see https://redis.io/commands/strlen
943
- */
944
- Object.defineProperty(this, "strlen", {
945
- enumerable: true,
946
- configurable: true,
947
- writable: true,
948
- value: (...args) => this.chain(new mod_js_1.StrLenCommand(args, this.commandOptions))
949
- });
950
- /**
951
- * @see https://redis.io/commands/sunion
952
- */
953
- Object.defineProperty(this, "sunion", {
954
- enumerable: true,
955
- configurable: true,
956
- writable: true,
957
- value: (...args) => this.chain(new mod_js_1.SUnionCommand(args, this.commandOptions))
958
- });
959
- /**
960
- * @see https://redis.io/commands/sunionstore
961
- */
962
- Object.defineProperty(this, "sunionstore", {
963
- enumerable: true,
964
- configurable: true,
965
- writable: true,
966
- value: (...args) => this.chain(new mod_js_1.SUnionStoreCommand(args, this.commandOptions))
967
- });
968
- /**
969
- * @see https://redis.io/commands/time
970
- */
971
- Object.defineProperty(this, "time", {
972
- enumerable: true,
973
- configurable: true,
974
- writable: true,
975
- value: () => this.chain(new mod_js_1.TimeCommand(this.commandOptions))
976
- });
977
- /**
978
- * @see https://redis.io/commands/touch
979
- */
980
- Object.defineProperty(this, "touch", {
981
- enumerable: true,
982
- configurable: true,
983
- writable: true,
984
- value: (...args) => this.chain(new mod_js_1.TouchCommand(args, this.commandOptions))
985
- });
986
- /**
987
- * @see https://redis.io/commands/ttl
988
- */
989
- Object.defineProperty(this, "ttl", {
990
- enumerable: true,
991
- configurable: true,
992
- writable: true,
993
- value: (...args) => this.chain(new mod_js_1.TtlCommand(args, this.commandOptions))
994
- });
995
- /**
996
- * @see https://redis.io/commands/type
997
- */
998
- Object.defineProperty(this, "type", {
999
- enumerable: true,
1000
- configurable: true,
1001
- writable: true,
1002
- value: (...args) => this.chain(new mod_js_1.TypeCommand(args, this.commandOptions))
1003
- });
1004
- /**
1005
- * @see https://redis.io/commands/unlink
1006
- */
1007
- Object.defineProperty(this, "unlink", {
1008
- enumerable: true,
1009
- configurable: true,
1010
- writable: true,
1011
- value: (...args) => this.chain(new mod_js_1.UnlinkCommand(args, this.commandOptions))
1012
- });
1013
- /**
1014
- * @see https://redis.io/commands/zadd
1015
- */
1016
- Object.defineProperty(this, "zadd", {
1017
- enumerable: true,
1018
- configurable: true,
1019
- writable: true,
1020
- value: (...args) => {
1021
- if ("score" in args[1]) {
1022
- return this.chain(new mod_js_1.ZAddCommand([args[0], args[1], ...args.slice(2)], this.commandOptions));
1023
- }
1024
- return this.chain(new mod_js_1.ZAddCommand([args[0], args[1], ...args.slice(2)], this.commandOptions));
1025
- }
1026
- });
1027
- /**
1028
- * @see https://redis.io/commands/zcard
1029
- */
1030
- Object.defineProperty(this, "zcard", {
1031
- enumerable: true,
1032
- configurable: true,
1033
- writable: true,
1034
- value: (...args) => this.chain(new mod_js_1.ZCardCommand(args, this.commandOptions))
1035
- });
1036
- /**
1037
- * @see https://redis.io/commands/zcount
1038
- */
1039
- Object.defineProperty(this, "zcount", {
1040
- enumerable: true,
1041
- configurable: true,
1042
- writable: true,
1043
- value: (...args) => this.chain(new mod_js_1.ZCountCommand(args, this.commandOptions))
1044
- });
1045
- /**
1046
- * @see https://redis.io/commands/zincrby
1047
- */
1048
- Object.defineProperty(this, "zincrby", {
1049
- enumerable: true,
1050
- configurable: true,
1051
- writable: true,
1052
- value: (key, increment, member) => this.chain(new mod_js_1.ZIncrByCommand([key, increment, member], this.commandOptions))
1053
- });
1054
- /**
1055
- * @see https://redis.io/commands/zinterstore
1056
- */
1057
- Object.defineProperty(this, "zinterstore", {
1058
- enumerable: true,
1059
- configurable: true,
1060
- writable: true,
1061
- value: (...args) => this.chain(new mod_js_1.ZInterStoreCommand(args, this.commandOptions))
1062
- });
1063
- /**
1064
- * @see https://redis.io/commands/zlexcount
1065
- */
1066
- Object.defineProperty(this, "zlexcount", {
1067
- enumerable: true,
1068
- configurable: true,
1069
- writable: true,
1070
- value: (...args) => this.chain(new mod_js_1.ZLexCountCommand(args, this.commandOptions))
1071
- });
1072
- /**
1073
- * @see https://redis.io/commands/zmscore
1074
- */
1075
- Object.defineProperty(this, "zmscore", {
1076
- enumerable: true,
1077
- configurable: true,
1078
- writable: true,
1079
- value: (...args) => this.chain(new zmscore_js_1.ZMScoreCommand(args, this.commandOptions))
1080
- });
1081
- /**
1082
- * @see https://redis.io/commands/zpopmax
1083
- */
1084
- Object.defineProperty(this, "zpopmax", {
1085
- enumerable: true,
1086
- configurable: true,
1087
- writable: true,
1088
- value: (...args) => this.chain(new mod_js_1.ZPopMaxCommand(args, this.commandOptions))
1089
- });
1090
- /**
1091
- * @see https://redis.io/commands/zpopmin
1092
- */
1093
- Object.defineProperty(this, "zpopmin", {
1094
- enumerable: true,
1095
- configurable: true,
1096
- writable: true,
1097
- value: (...args) => this.chain(new mod_js_1.ZPopMinCommand(args, this.commandOptions))
1098
- });
1099
- /**
1100
- * @see https://redis.io/commands/zrange
1101
- */
1102
- Object.defineProperty(this, "zrange", {
1103
- enumerable: true,
1104
- configurable: true,
1105
- writable: true,
1106
- value: (...args) => this.chain(new mod_js_1.ZRangeCommand(args, this.commandOptions))
1107
- });
1108
- /**
1109
- * @see https://redis.io/commands/zrank
1110
- */
1111
- Object.defineProperty(this, "zrank", {
1112
- enumerable: true,
1113
- configurable: true,
1114
- writable: true,
1115
- value: (key, member) => this.chain(new mod_js_1.ZRankCommand([key, member], this.commandOptions))
1116
- });
1117
- /**
1118
- * @see https://redis.io/commands/zrem
1119
- */
1120
- Object.defineProperty(this, "zrem", {
1121
- enumerable: true,
1122
- configurable: true,
1123
- writable: true,
1124
- value: (key, ...members) => this.chain(new mod_js_1.ZRemCommand([key, ...members], this.commandOptions))
1125
- });
1126
- /**
1127
- * @see https://redis.io/commands/zremrangebylex
1128
- */
1129
- Object.defineProperty(this, "zremrangebylex", {
1130
- enumerable: true,
1131
- configurable: true,
1132
- writable: true,
1133
- value: (...args) => this.chain(new mod_js_1.ZRemRangeByLexCommand(args, this.commandOptions))
1134
- });
1135
- /**
1136
- * @see https://redis.io/commands/zremrangebyrank
1137
- */
1138
- Object.defineProperty(this, "zremrangebyrank", {
1139
- enumerable: true,
1140
- configurable: true,
1141
- writable: true,
1142
- value: (...args) => this.chain(new mod_js_1.ZRemRangeByRankCommand(args, this.commandOptions))
1143
- });
1144
- /**
1145
- * @see https://redis.io/commands/zremrangebyscore
1146
- */
1147
- Object.defineProperty(this, "zremrangebyscore", {
1148
- enumerable: true,
1149
- configurable: true,
1150
- writable: true,
1151
- value: (...args) => this.chain(new mod_js_1.ZRemRangeByScoreCommand(args, this.commandOptions))
1152
- });
1153
- /**
1154
- * @see https://redis.io/commands/zrevrank
1155
- */
1156
- Object.defineProperty(this, "zrevrank", {
1157
- enumerable: true,
1158
- configurable: true,
1159
- writable: true,
1160
- value: (key, member) => this.chain(new mod_js_1.ZRevRankCommand([key, member], this.commandOptions))
1161
- });
1162
- /**
1163
- * @see https://redis.io/commands/zscan
1164
- */
1165
- Object.defineProperty(this, "zscan", {
1166
- enumerable: true,
1167
- configurable: true,
1168
- writable: true,
1169
- value: (...args) => this.chain(new mod_js_1.ZScanCommand(args, this.commandOptions))
1170
- });
1171
- /**
1172
- * @see https://redis.io/commands/zscore
1173
- */
1174
- Object.defineProperty(this, "zscore", {
1175
- enumerable: true,
1176
- configurable: true,
1177
- writable: true,
1178
- value: (key, member) => this.chain(new mod_js_1.ZScoreCommand([key, member], this.commandOptions))
1179
- });
1180
- /**
1181
- * @see https://redis.io/commands/zunionstore
1182
- */
1183
- Object.defineProperty(this, "zunionstore", {
1184
- enumerable: true,
1185
- configurable: true,
1186
- writable: true,
1187
- value: (...args) => this.chain(new mod_js_1.ZUnionStoreCommand(args, this.commandOptions))
1188
- });
1189
- this.client = opts.client;
1190
- this.commands = [];
1191
- this.commandOptions = opts.commandOptions;
1192
- this.multiExec = opts.multiExec ?? false;
1193
- }
1194
- /**
1195
- * Pushes a command into the pipelien and returns a chainable instance of the
1196
- * pipeline
1197
- */
1198
- chain(command) {
1199
- this.commands.push(command);
1200
- return this;
1201
- }
1202
- }
1203
- exports.Pipeline = Pipeline;