@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.
- package/.env.example +2 -0
- package/.github/workflows/release.yml +53 -0
- package/.github/workflows/tests.yaml +609 -0
- package/.gitignore +175 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +2 -0
- package/.husky/pre-push +1 -0
- package/.prettierignore +1 -0
- package/.vscode/extensions.json +3 -0
- package/.vscode/settings.json +20 -0
- package/README.md +18 -7
- package/bun.lockb +0 -0
- package/commitlint.config.js +46 -0
- package/dist/LICENSE +21 -0
- package/dist/README.md +136 -0
- package/dist/chunk-TEVCO3ZO.mjs +3797 -0
- package/dist/cloudflare.d.mts +55 -0
- package/dist/cloudflare.d.ts +55 -0
- package/dist/cloudflare.js +3907 -0
- package/dist/cloudflare.mjs +91 -0
- package/dist/fastly.d.mts +48 -0
- package/dist/fastly.d.ts +48 -0
- package/dist/fastly.js +3880 -0
- package/dist/fastly.mjs +64 -0
- package/dist/nodejs.d.mts +73 -0
- package/dist/nodejs.d.ts +73 -0
- package/dist/nodejs.js +3926 -0
- package/dist/nodejs.mjs +110 -0
- package/dist/package.json +1 -0
- package/dist/zmscore-BhX8yEQc.d.mts +3486 -0
- package/dist/zmscore-BhX8yEQc.d.ts +3486 -0
- package/eslint.config.mjs +102 -0
- package/examples/auto-pipeline/.eslintrc.json +3 -0
- package/examples/auto-pipeline/README.md +77 -0
- package/examples/auto-pipeline/app/components/DataComponent.tsx +49 -0
- package/examples/auto-pipeline/app/data/getEvents.ts +18 -0
- package/examples/auto-pipeline/app/data/getUsers.ts +18 -0
- package/examples/auto-pipeline/app/data/redis.ts +12 -0
- package/examples/auto-pipeline/app/favicon.ico +0 -0
- package/examples/auto-pipeline/app/globals.css +0 -0
- package/examples/auto-pipeline/app/layout.tsx +22 -0
- package/examples/auto-pipeline/app/page.tsx +15 -0
- package/examples/auto-pipeline/next.config.mjs +4 -0
- package/examples/auto-pipeline/package.json +27 -0
- package/examples/auto-pipeline/postcss.config.mjs +8 -0
- package/examples/auto-pipeline/public/next.svg +1 -0
- package/examples/auto-pipeline/public/vercel.svg +1 -0
- package/examples/auto-pipeline/tailwind.config.ts +20 -0
- package/examples/auto-pipeline/tsconfig.json +26 -0
- package/examples/aws-cdk-python/README.md +36 -0
- package/examples/aws-cdk-python/cdk.json +72 -0
- package/examples/aws-cdk-python/jest.config.js +8 -0
- package/examples/aws-cdk-python/lib/api/index.py +10 -0
- package/examples/aws-cdk-python/lib/api/requirements.txt +1 -0
- package/examples/aws-cdk-python/package-lock.json +4470 -0
- package/examples/aws-cdk-python/package.json +27 -0
- package/examples/aws-cdk-python/tsconfig.json +31 -0
- package/examples/aws-cdk-typescript/README.md +36 -0
- package/examples/aws-cdk-typescript/cdk.json +72 -0
- package/examples/aws-cdk-typescript/jest.config.js +8 -0
- package/examples/aws-cdk-typescript/package-lock.json +4548 -0
- package/examples/aws-cdk-typescript/package.json +28 -0
- package/examples/aws-cdk-typescript/tsconfig.json +31 -0
- package/examples/aws-lambda/README.md +39 -0
- package/examples/aws-lambda/index.js +11 -0
- package/examples/aws-lambda/package-lock.json +27 -0
- package/examples/aws-lambda/package.json +6 -0
- package/examples/aws-sam/README.md +34 -0
- package/examples/aws-sam/__init__.py +0 -0
- package/examples/aws-sam/events/event.json +62 -0
- package/examples/aws-sam/hello_world/__init__.py +0 -0
- package/examples/aws-sam/hello_world/app.py +10 -0
- package/examples/aws-sam/hello_world/requirements.txt +2 -0
- package/examples/aws-sam/samconfig.toml +34 -0
- package/examples/aws-sam/template.yaml +52 -0
- package/examples/aws-sam/tests/__init__.py +0 -0
- package/examples/aws-sam/tests/integration/__init__.py +0 -0
- package/examples/aws-sam/tests/integration/test_api_gateway.py +45 -0
- package/examples/aws-sam/tests/requirements.txt +3 -0
- package/examples/aws-sam/tests/unit/__init__.py +0 -0
- package/examples/aws-sam/tests/unit/test_handler.py +72 -0
- package/examples/azure-functions/.funcignore +10 -0
- package/examples/azure-functions/.vscode/extensions.json +5 -0
- package/examples/azure-functions/README.md +67 -0
- package/examples/azure-functions/host.json +15 -0
- package/examples/azure-functions/package-lock.json +1019 -0
- package/examples/azure-functions/package.json +24 -0
- package/examples/azure-functions/src/functions/CounterFunction.ts +19 -0
- package/examples/azure-functions/tsconfig.json +10 -0
- package/examples/cloudflare-workers/README.md +26 -0
- package/examples/cloudflare-workers/bun.lockb +0 -0
- package/examples/cloudflare-workers/ci.test.ts +18 -0
- package/examples/cloudflare-workers/index.js +11 -0
- package/examples/cloudflare-workers/package.json +17 -0
- package/examples/cloudflare-workers/wrangler.toml +11 -0
- package/examples/cloudflare-workers-with-typescript/README.md +26 -0
- package/examples/cloudflare-workers-with-typescript/ci.test.ts +17 -0
- package/examples/cloudflare-workers-with-typescript/package.json +17 -0
- package/examples/cloudflare-workers-with-typescript/src/index.ts +16 -0
- package/examples/cloudflare-workers-with-typescript/tsconfig.json +105 -0
- package/examples/cloudflare-workers-with-typescript/wrangler.toml +9 -0
- package/examples/deno/main.test.ts +16 -0
- package/examples/deno/main.ts +9 -0
- package/examples/fastapi/README.md +23 -0
- package/examples/fastapi/main.py +12 -0
- package/examples/fastapi/requirements.txt +2 -0
- package/examples/fastly/README.md +7 -0
- package/examples/fastly/fastly.toml +12 -0
- package/examples/fastly/package.json +23 -0
- package/examples/fastly/src/index.js +19 -0
- package/examples/fastly/webpack.config.js +28 -0
- package/examples/google-cloud-functions/README.md +37 -0
- package/examples/google-cloud-functions/index.js +12 -0
- package/examples/google-cloud-functions/package.json +7 -0
- package/examples/ion/.env.example +2 -0
- package/examples/ion/.eslintrc.json +3 -0
- package/examples/ion/README.md +49 -0
- package/examples/ion/app/favicon.ico +0 -0
- package/examples/ion/app/globals.css +33 -0
- package/examples/ion/app/layout.tsx +22 -0
- package/examples/ion/app/page.tsx +12 -0
- package/examples/ion/next.config.mjs +4 -0
- package/examples/ion/package-lock.json +6709 -0
- package/examples/ion/package.json +28 -0
- package/examples/ion/postcss.config.mjs +8 -0
- package/examples/ion/public/next.svg +1 -0
- package/examples/ion/public/vercel.svg +1 -0
- package/examples/ion/sst-env.d.ts +12 -0
- package/examples/ion/sst.config.ts +19 -0
- package/examples/ion/tailwind.config.ts +20 -0
- package/examples/ion/tsconfig.json +26 -0
- package/examples/nextjs-app-router/.env.example +2 -0
- package/examples/nextjs-app-router/.eslintrc.json +3 -0
- package/examples/nextjs-app-router/README.md +26 -0
- package/examples/nextjs-app-router/app/globals.css +3 -0
- package/examples/nextjs-app-router/app/layout.tsx +22 -0
- package/examples/nextjs-app-router/app/page.tsx +12 -0
- package/examples/nextjs-app-router/next.config.mjs +4 -0
- package/examples/nextjs-app-router/package.json +27 -0
- package/examples/nextjs-app-router/postcss.config.mjs +8 -0
- package/examples/nextjs-app-router/tailwind.config.ts +20 -0
- package/examples/nextjs-app-router/tsconfig.json +26 -0
- package/examples/nextjs-pages-router/.env.example +2 -0
- package/examples/nextjs-pages-router/.eslintrc.json +3 -0
- package/examples/nextjs-pages-router/README.md +26 -0
- package/examples/nextjs-pages-router/next.config.mjs +6 -0
- package/examples/nextjs-pages-router/package.json +27 -0
- package/examples/nextjs-pages-router/pages/_app.tsx +6 -0
- package/examples/nextjs-pages-router/pages/_document.tsx +13 -0
- package/examples/nextjs-pages-router/pages/api/hello.ts +13 -0
- package/examples/nextjs-pages-router/pages/index.tsx +19 -0
- package/examples/nextjs-pages-router/postcss.config.mjs +8 -0
- package/examples/nextjs-pages-router/styles/globals.css +3 -0
- package/examples/nextjs-pages-router/tailwind.config.ts +20 -0
- package/examples/nextjs-pages-router/tsconfig.json +21 -0
- package/examples/nodejs/.env.example +2 -0
- package/examples/nodejs/README.md +24 -0
- package/examples/nodejs/index.js +10 -0
- package/examples/nodejs/package.json +10 -0
- package/examples/serverless-framework/counter/.env.example +2 -0
- package/examples/serverless-framework/counter/README.md +38 -0
- package/examples/serverless-framework/counter/handler.js +12 -0
- package/examples/serverless-framework/counter/package-lock.json +27 -0
- package/examples/serverless-framework/counter/package.json +6 -0
- package/examples/serverless-framework/counter/serverless.yml +16 -0
- package/examples/sst-v2/.vscode/launch.json +15 -0
- package/examples/sst-v2/.vscode/settings.json +5 -0
- package/examples/sst-v2/README.md +62 -0
- package/examples/sst-v2/package.json +27 -0
- package/examples/sst-v2/packages/core/package.json +14 -0
- package/examples/sst-v2/packages/core/sst-env.d.ts +1 -0
- package/examples/sst-v2/packages/core/tsconfig.json +7 -0
- package/examples/sst-v2/packages/functions/package.json +15 -0
- package/examples/sst-v2/packages/functions/sst-env.d.ts +1 -0
- package/examples/sst-v2/packages/functions/tsconfig.json +11 -0
- package/examples/sst-v2/packages/web/README.md +40 -0
- package/examples/sst-v2/packages/web/next.config.mjs +6 -0
- package/examples/sst-v2/packages/web/package.json +23 -0
- package/examples/sst-v2/packages/web/pages/_app.tsx +6 -0
- package/examples/sst-v2/packages/web/pages/_document.tsx +13 -0
- package/examples/sst-v2/packages/web/pages/api/hello.ts +16 -0
- package/examples/sst-v2/packages/web/pages/index.tsx +114 -0
- package/examples/sst-v2/packages/web/public/favicon.ico +0 -0
- package/examples/sst-v2/packages/web/public/next.svg +1 -0
- package/examples/sst-v2/packages/web/public/vercel.svg +1 -0
- package/examples/sst-v2/packages/web/sst-env.d.ts +1 -0
- package/examples/sst-v2/packages/web/styles/Home.module.css +229 -0
- package/examples/sst-v2/packages/web/styles/globals.css +107 -0
- package/examples/sst-v2/packages/web/tsconfig.json +36 -0
- package/examples/sst-v2/pnpm-workspace.yaml +2 -0
- package/examples/sst-v2/sst.config.ts +14 -0
- package/examples/sst-v2/stacks/Default.ts +13 -0
- package/examples/sst-v2/tsconfig.json +8 -0
- package/examples/terraform/README.md +38 -0
- package/examples/terraform/counter/counter.js +11 -0
- package/examples/terraform/counter/package.json +6 -0
- package/examples/terraform/main.tf +166 -0
- package/examples/terraform/outputs.tf +17 -0
- package/examples/terraform/terraform.tf +18 -0
- package/examples/terraform/variables.tf +6 -0
- package/examples/vercel-functions-app-router/.env.example +2 -0
- package/examples/vercel-functions-app-router/.eslintrc.json +3 -0
- package/examples/vercel-functions-app-router/README.md +26 -0
- package/examples/vercel-functions-app-router/app/api/hello/route.ts +11 -0
- package/examples/vercel-functions-app-router/app/globals.css +3 -0
- package/examples/vercel-functions-app-router/app/layout.tsx +22 -0
- package/examples/vercel-functions-app-router/ci.test.ts +14 -0
- package/examples/vercel-functions-app-router/next.config.mjs +4 -0
- package/examples/vercel-functions-app-router/package.json +27 -0
- package/examples/vercel-functions-app-router/postcss.config.mjs +8 -0
- package/examples/vercel-functions-app-router/tailwind.config.ts +20 -0
- package/examples/vercel-functions-app-router/tsconfig.json +26 -0
- package/examples/vercel-functions-pages-router/.env.example +2 -0
- package/examples/vercel-functions-pages-router/.eslintrc.json +3 -0
- package/examples/vercel-functions-pages-router/README.md +26 -0
- package/examples/vercel-functions-pages-router/ci.test.ts +14 -0
- package/examples/vercel-functions-pages-router/next.config.mjs +6 -0
- package/examples/vercel-functions-pages-router/package.json +27 -0
- package/examples/vercel-functions-pages-router/pages/_app.tsx +6 -0
- package/examples/vercel-functions-pages-router/pages/_document.tsx +13 -0
- package/examples/vercel-functions-pages-router/pages/api/hello.ts +12 -0
- package/examples/vercel-functions-pages-router/postcss.config.mjs +8 -0
- package/examples/vercel-functions-pages-router/styles/globals.css +3 -0
- package/examples/vercel-functions-pages-router/tailwind.config.ts +20 -0
- package/examples/vercel-functions-pages-router/tsconfig.json +21 -0
- package/examples/vercel-python-runtime-django/.env.example +2 -0
- package/examples/vercel-python-runtime-django/README.md +34 -0
- package/examples/vercel-python-runtime-django/api/__init__.py +0 -0
- package/examples/vercel-python-runtime-django/api/asgi.py +16 -0
- package/examples/vercel-python-runtime-django/api/settings.py +121 -0
- package/examples/vercel-python-runtime-django/api/urls.py +22 -0
- package/examples/vercel-python-runtime-django/api/wsgi.py +16 -0
- package/examples/vercel-python-runtime-django/example/__init__.py +0 -0
- package/examples/vercel-python-runtime-django/example/admin.py +3 -0
- package/examples/vercel-python-runtime-django/example/apps.py +6 -0
- package/examples/vercel-python-runtime-django/example/urls.py +9 -0
- package/examples/vercel-python-runtime-django/example/views.py +18 -0
- package/examples/vercel-python-runtime-django/manage.py +22 -0
- package/examples/vercel-python-runtime-django/package.json +5 -0
- package/examples/vercel-python-runtime-django/requirements.txt +2 -0
- package/examples/vercel-python-runtime-django/vercel.json +8 -0
- package/examples/with-sentry/index.ts +36 -0
- package/examples/with-sentry/package.json +17 -0
- package/package.json +1 -63
- package/pkg/auto-pipeline.test.ts +321 -0
- package/pkg/auto-pipeline.ts +107 -0
- package/pkg/commands/append.test.ts +28 -0
- package/pkg/commands/append.ts +11 -0
- package/pkg/commands/bitcount.test.ts +37 -0
- package/pkg/commands/bitcount.ts +29 -0
- package/pkg/commands/bitfield.test.ts +51 -0
- package/pkg/commands/bitfield.ts +50 -0
- package/pkg/commands/bitop.test.ts +45 -0
- package/pkg/commands/bitop.ts +22 -0
- package/pkg/commands/bitpos.test.ts +47 -0
- package/pkg/commands/bitpos.ts +14 -0
- package/pkg/commands/command.test.ts +22 -0
- package/pkg/commands/command.ts +98 -0
- package/pkg/commands/copy.test.ts +65 -0
- package/pkg/commands/copy.ts +22 -0
- package/pkg/commands/dbsize.test.ts +18 -0
- package/pkg/commands/dbsize.ts +11 -0
- package/pkg/commands/decr.test.ts +23 -0
- package/pkg/commands/decr.ts +11 -0
- package/pkg/commands/decrby.test.ts +24 -0
- package/pkg/commands/decrby.ts +11 -0
- package/pkg/commands/del.test.ts +38 -0
- package/pkg/commands/del.ts +11 -0
- package/pkg/commands/echo.test.ts +11 -0
- package/pkg/commands/echo.ts +11 -0
- package/pkg/commands/eval.test.ts +30 -0
- package/pkg/commands/eval.ts +14 -0
- package/pkg/commands/evalsha.test.ts +19 -0
- package/pkg/commands/evalsha.ts +14 -0
- package/pkg/commands/exists.test.ts +38 -0
- package/pkg/commands/exists.ts +11 -0
- package/pkg/commands/expire.test.ts +119 -0
- package/pkg/commands/expire.ts +12 -0
- package/pkg/commands/expireat.test.ts +25 -0
- package/pkg/commands/expireat.ts +11 -0
- package/pkg/commands/flushall.test.ts +18 -0
- package/pkg/commands/flushall.ts +14 -0
- package/pkg/commands/flushdb.test.ts +17 -0
- package/pkg/commands/flushdb.ts +14 -0
- package/pkg/commands/geo_add.test.ts +202 -0
- package/pkg/commands/geo_add.ts +54 -0
- package/pkg/commands/geo_dist.test.ts +79 -0
- package/pkg/commands/geo_dist.ts +19 -0
- package/pkg/commands/geo_hash.test.ts +49 -0
- package/pkg/commands/geo_hash.ts +23 -0
- package/pkg/commands/geo_pos.test.ts +60 -0
- package/pkg/commands/geo_pos.ts +39 -0
- package/pkg/commands/geo_search.test.ts +197 -0
- package/pkg/commands/geo_search.ts +139 -0
- package/pkg/commands/geo_search_store.test.ts +153 -0
- package/pkg/commands/geo_search_store.ts +69 -0
- package/pkg/commands/get.test.ts +35 -0
- package/pkg/commands/get.ts +11 -0
- package/pkg/commands/getbit.test.ts +17 -0
- package/pkg/commands/getbit.ts +11 -0
- package/pkg/commands/getdel.test.ts +39 -0
- package/pkg/commands/getdel.ts +11 -0
- package/pkg/commands/getrange.test.ts +25 -0
- package/pkg/commands/getrange.ts +14 -0
- package/pkg/commands/getset.test.ts +33 -0
- package/pkg/commands/getset.ts +14 -0
- package/pkg/commands/hdel.test.ts +45 -0
- package/pkg/commands/hdel.ts +11 -0
- package/pkg/commands/hexists.test.ts +36 -0
- package/pkg/commands/hexists.ts +11 -0
- package/pkg/commands/hget.test.ts +52 -0
- package/pkg/commands/hget.ts +14 -0
- package/pkg/commands/hgetall.test.ts +45 -0
- package/pkg/commands/hgetall.ts +37 -0
- package/pkg/commands/hincrby.test.ts +28 -0
- package/pkg/commands/hincrby.ts +14 -0
- package/pkg/commands/hincrbyfloat.test.ts +28 -0
- package/pkg/commands/hincrbyfloat.ts +14 -0
- package/pkg/commands/hkeys.test.ts +23 -0
- package/pkg/commands/hkeys.ts +11 -0
- package/pkg/commands/hlen.test.ts +25 -0
- package/pkg/commands/hlen.ts +11 -0
- package/pkg/commands/hmget.test.ts +44 -0
- package/pkg/commands/hmget.ts +46 -0
- package/pkg/commands/hmset.test.ts +23 -0
- package/pkg/commands/hmset.ts +14 -0
- package/pkg/commands/hrandfield.test.ts +59 -0
- package/pkg/commands/hrandfield.ts +50 -0
- package/pkg/commands/hscan.test.ts +44 -0
- package/pkg/commands/hscan.ts +30 -0
- package/pkg/commands/hset.test.ts +21 -0
- package/pkg/commands/hset.ts +14 -0
- package/pkg/commands/hsetnx.test.ts +37 -0
- package/pkg/commands/hsetnx.ts +14 -0
- package/pkg/commands/hstrlen.test.ts +24 -0
- package/pkg/commands/hstrlen.ts +11 -0
- package/pkg/commands/hvals.test.ts +24 -0
- package/pkg/commands/hvals.ts +11 -0
- package/pkg/commands/incr.test.ts +24 -0
- package/pkg/commands/incr.ts +11 -0
- package/pkg/commands/incrby.test.ts +24 -0
- package/pkg/commands/incrby.ts +11 -0
- package/pkg/commands/incrbyfloat.test.ts +25 -0
- package/pkg/commands/incrbyfloat.ts +11 -0
- package/pkg/commands/json_arrappend.test.ts +40 -0
- package/pkg/commands/json_arrappend.ts +17 -0
- package/pkg/commands/json_arrindex.test.ts +54 -0
- package/pkg/commands/json_arrindex.ts +14 -0
- package/pkg/commands/json_arrinsert.test.ts +49 -0
- package/pkg/commands/json_arrinsert.ts +17 -0
- package/pkg/commands/json_arrlen.test.ts +31 -0
- package/pkg/commands/json_arrlen.ts +14 -0
- package/pkg/commands/json_arrpop.test.ts +30 -0
- package/pkg/commands/json_arrpop.ts +14 -0
- package/pkg/commands/json_arrtrim.test.ts +31 -0
- package/pkg/commands/json_arrtrim.ts +18 -0
- package/pkg/commands/json_clear.test.ts +35 -0
- package/pkg/commands/json_clear.ts +11 -0
- package/pkg/commands/json_del.test.ts +29 -0
- package/pkg/commands/json_del.ts +11 -0
- package/pkg/commands/json_forget.test.ts +29 -0
- package/pkg/commands/json_forget.ts +11 -0
- package/pkg/commands/json_get.test.ts +28 -0
- package/pkg/commands/json_get.ts +44 -0
- package/pkg/commands/json_mget.test.ts +43 -0
- package/pkg/commands/json_mget.ts +11 -0
- package/pkg/commands/json_mset.test.ts +50 -0
- package/pkg/commands/json_mset.ts +26 -0
- package/pkg/commands/json_numincrby.test.ts +28 -0
- package/pkg/commands/json_numincrby.ts +14 -0
- package/pkg/commands/json_nummultby.test.ts +28 -0
- package/pkg/commands/json_nummultby.ts +14 -0
- package/pkg/commands/json_objkeys.test.ts +32 -0
- package/pkg/commands/json_objkeys.ts +14 -0
- package/pkg/commands/json_objlen.test.ts +26 -0
- package/pkg/commands/json_objlen.ts +14 -0
- package/pkg/commands/json_resp.test.ts +31 -0
- package/pkg/commands/json_resp.ts +11 -0
- package/pkg/commands/json_set.test.ts +48 -0
- package/pkg/commands/json_set.ts +34 -0
- package/pkg/commands/json_strappend.test.ts +34 -0
- package/pkg/commands/json_strappend.ts +14 -0
- package/pkg/commands/json_strlen.test.ts +27 -0
- package/pkg/commands/json_strlen.ts +14 -0
- package/pkg/commands/json_toggle.test.ts +26 -0
- package/pkg/commands/json_toggle.ts +11 -0
- package/pkg/commands/json_type.test.ts +29 -0
- package/pkg/commands/json_type.ts +11 -0
- package/pkg/commands/keys.test.ts +18 -0
- package/pkg/commands/keys.ts +11 -0
- package/pkg/commands/lindex.test.ts +33 -0
- package/pkg/commands/lindex.ts +11 -0
- package/pkg/commands/linsert.test.ts +24 -0
- package/pkg/commands/linsert.ts +10 -0
- package/pkg/commands/llen.test.ts +27 -0
- package/pkg/commands/llen.ts +11 -0
- package/pkg/commands/lmove.test.ts +48 -0
- package/pkg/commands/lmove.ts +19 -0
- package/pkg/commands/lmpop.test.ts +86 -0
- package/pkg/commands/lmpop.ts +19 -0
- package/pkg/commands/lpop.test.ts +40 -0
- package/pkg/commands/lpop.ts +14 -0
- package/pkg/commands/lpos.test.ts +56 -0
- package/pkg/commands/lpos.ts +25 -0
- package/pkg/commands/lpush.test.ts +18 -0
- package/pkg/commands/lpush.ts +11 -0
- package/pkg/commands/lpushx.test.ts +30 -0
- package/pkg/commands/lpushx.ts +11 -0
- package/pkg/commands/lrange.test.ts +21 -0
- package/pkg/commands/lrange.ts +11 -0
- package/pkg/commands/lrem.test.ts +19 -0
- package/pkg/commands/lrem.ts +10 -0
- package/pkg/commands/lset.test.ts +43 -0
- package/pkg/commands/lset.ts +8 -0
- package/pkg/commands/ltrim.test.ts +30 -0
- package/pkg/commands/ltrim.ts +8 -0
- package/pkg/commands/mget.test.ts +44 -0
- package/pkg/commands/mget.ts +11 -0
- package/pkg/commands/mod.ts +168 -0
- package/pkg/commands/mset.test.ts +24 -0
- package/pkg/commands/mset.ts +11 -0
- package/pkg/commands/msetnx.test.ts +46 -0
- package/pkg/commands/msetnx.ts +11 -0
- package/pkg/commands/persist.test.ts +22 -0
- package/pkg/commands/persist.ts +11 -0
- package/pkg/commands/pexpire.test.ts +24 -0
- package/pkg/commands/pexpire.ts +11 -0
- package/pkg/commands/pexpireat.test.ts +31 -0
- package/pkg/commands/pexpireat.ts +11 -0
- package/pkg/commands/pfadd.test.ts +80 -0
- package/pkg/commands/pfadd.ts +11 -0
- package/pkg/commands/pfcount.test.ts +55 -0
- package/pkg/commands/pfcount.ts +11 -0
- package/pkg/commands/pfmerge.test.ts +67 -0
- package/pkg/commands/pfmerge.ts +11 -0
- package/pkg/commands/ping.test.ts +19 -0
- package/pkg/commands/ping.ts +14 -0
- package/pkg/commands/psetex.test.ts +23 -0
- package/pkg/commands/psetex.ts +14 -0
- package/pkg/commands/pttl.test.ts +18 -0
- package/pkg/commands/pttl.ts +11 -0
- package/pkg/commands/publish.test.ts +12 -0
- package/pkg/commands/publish.ts +11 -0
- package/pkg/commands/randomkey.test.ts +16 -0
- package/pkg/commands/randomkey.ts +11 -0
- package/pkg/commands/rename.test.ts +19 -0
- package/pkg/commands/rename.ts +11 -0
- package/pkg/commands/renamenx.test.ts +33 -0
- package/pkg/commands/renamenx.ts +11 -0
- package/pkg/commands/rpop.test.ts +40 -0
- package/pkg/commands/rpop.ts +17 -0
- package/pkg/commands/rpush.test.ts +17 -0
- package/pkg/commands/rpush.ts +11 -0
- package/pkg/commands/rpushx.test.ts +30 -0
- package/pkg/commands/rpushx.ts +11 -0
- package/pkg/commands/sadd.test.ts +22 -0
- package/pkg/commands/sadd.ts +14 -0
- package/pkg/commands/scan.test.ts +91 -0
- package/pkg/commands/scan.ts +33 -0
- package/pkg/commands/scard.test.ts +16 -0
- package/pkg/commands/scard.ts +10 -0
- package/pkg/commands/script_exists.test.ts +34 -0
- package/pkg/commands/script_exists.ts +14 -0
- package/pkg/commands/script_flush.ts +21 -0
- package/pkg/commands/script_load.test.ts +11 -0
- package/pkg/commands/script_load.ts +11 -0
- package/pkg/commands/sdiff.test.ts +20 -0
- package/pkg/commands/sdiff.ts +10 -0
- package/pkg/commands/sdiffstore.test.ts +22 -0
- package/pkg/commands/sdiffstore.ts +13 -0
- package/pkg/commands/set.test.ts +168 -0
- package/pkg/commands/set.ts +51 -0
- package/pkg/commands/setbit.test.ts +17 -0
- package/pkg/commands/setbit.ts +14 -0
- package/pkg/commands/setex.test.ts +22 -0
- package/pkg/commands/setex.ts +11 -0
- package/pkg/commands/setnx.test.ts +27 -0
- package/pkg/commands/setnx.ts +11 -0
- package/pkg/commands/setrange.test.ts +25 -0
- package/pkg/commands/setrange.ts +14 -0
- package/pkg/commands/sinter.test.ts +37 -0
- package/pkg/commands/sinter.ts +10 -0
- package/pkg/commands/sinterstore.test.ts +22 -0
- package/pkg/commands/sinterstore.ts +13 -0
- package/pkg/commands/sismember.test.ts +31 -0
- package/pkg/commands/sismember.ts +10 -0
- package/pkg/commands/smembers.test.ts +22 -0
- package/pkg/commands/smembers.ts +11 -0
- package/pkg/commands/smismember.test.ts +22 -0
- package/pkg/commands/smismember.ts +16 -0
- package/pkg/commands/smove.test.ts +18 -0
- package/pkg/commands/smove.ts +13 -0
- package/pkg/commands/spop.test.ts +36 -0
- package/pkg/commands/spop.ts +17 -0
- package/pkg/commands/srandmember.test.ts +31 -0
- package/pkg/commands/srandmember.ts +17 -0
- package/pkg/commands/srem.test.ts +19 -0
- package/pkg/commands/srem.ts +10 -0
- package/pkg/commands/sscan.test.ts +48 -0
- package/pkg/commands/sscan.ts +30 -0
- package/pkg/commands/strlen.test.ts +17 -0
- package/pkg/commands/strlen.ts +11 -0
- package/pkg/commands/sunion.test.ts +22 -0
- package/pkg/commands/sunion.ts +11 -0
- package/pkg/commands/sunionstore.test.ts +30 -0
- package/pkg/commands/sunionstore.ts +14 -0
- package/pkg/commands/time.test.ts +12 -0
- package/pkg/commands/time.ts +10 -0
- package/pkg/commands/touch.test.ts +21 -0
- package/pkg/commands/touch.ts +11 -0
- package/pkg/commands/ttl.test.ts +17 -0
- package/pkg/commands/ttl.ts +11 -0
- package/pkg/commands/type.test.ts +72 -0
- package/pkg/commands/type.ts +12 -0
- package/pkg/commands/types.ts +150 -0
- package/pkg/commands/unlink.test.ts +22 -0
- package/pkg/commands/unlink.ts +11 -0
- package/pkg/commands/xack.test.ts +53 -0
- package/pkg/commands/xack.ts +15 -0
- package/pkg/commands/xadd.test.ts +128 -0
- package/pkg/commands/xadd.ts +64 -0
- package/pkg/commands/xautoclaim.test.ts +105 -0
- package/pkg/commands/xautoclaim.ts +30 -0
- package/pkg/commands/xclaim.test.ts +70 -0
- package/pkg/commands/xclaim.ts +55 -0
- package/pkg/commands/xdel.test.ts +50 -0
- package/pkg/commands/xdel.ts +15 -0
- package/pkg/commands/xgroup.test.ts +202 -0
- package/pkg/commands/xgroup.ts +100 -0
- package/pkg/commands/xinfo.test.ts +82 -0
- package/pkg/commands/xinfo.ts +27 -0
- package/pkg/commands/xlen.test.ts +29 -0
- package/pkg/commands/xlen.ts +11 -0
- package/pkg/commands/xpending.test.ts +94 -0
- package/pkg/commands/xpending.ts +43 -0
- package/pkg/commands/xrange.test.ts +69 -0
- package/pkg/commands/xrange.ts +48 -0
- package/pkg/commands/xread.test.ts +117 -0
- package/pkg/commands/xread.ts +51 -0
- package/pkg/commands/xreadgroup.test.ts +166 -0
- package/pkg/commands/xreadgroup.ts +66 -0
- package/pkg/commands/xrevrange.test.ts +48 -0
- package/pkg/commands/xrevrange.ts +47 -0
- package/pkg/commands/xtrim.test.ts +65 -0
- package/pkg/commands/xtrim.ts +24 -0
- package/pkg/commands/zadd.test.ts +242 -0
- package/pkg/commands/zadd.ts +53 -0
- package/pkg/commands/zcard.test.ts +16 -0
- package/pkg/commands/zcard.ts +11 -0
- package/pkg/commands/zcount.test.ts +16 -0
- package/pkg/commands/zcount.ts +13 -0
- package/pkg/commands/zdiffstore.test.ts +42 -0
- package/pkg/commands/zdiffstore.ts +14 -0
- package/pkg/commands/zincrby.test.ts +19 -0
- package/pkg/commands/zincrby.ts +13 -0
- package/pkg/commands/zinterstore.test.ts +297 -0
- package/pkg/commands/zinterstore.ts +51 -0
- package/pkg/commands/zlexcount.test.ts +23 -0
- package/pkg/commands/zlexcount.ts +10 -0
- package/pkg/commands/zmscore.test.ts +39 -0
- package/pkg/commands/zmscore.ts +15 -0
- package/pkg/commands/zpopmax.test.ts +46 -0
- package/pkg/commands/zpopmax.ts +17 -0
- package/pkg/commands/zpopmin.test.ts +50 -0
- package/pkg/commands/zpopmin.ts +17 -0
- package/pkg/commands/zrange.test.ts +188 -0
- package/pkg/commands/zrange.ts +68 -0
- package/pkg/commands/zrank.test.ts +23 -0
- package/pkg/commands/zrank.ts +14 -0
- package/pkg/commands/zrem.test.ts +21 -0
- package/pkg/commands/zrem.ts +10 -0
- package/pkg/commands/zremrangebylex.test.ts +24 -0
- package/pkg/commands/zremrangebylex.ts +10 -0
- package/pkg/commands/zremrangebyrank.test.ts +27 -0
- package/pkg/commands/zremrangebyrank.ts +13 -0
- package/pkg/commands/zremrangebyscore.test.ts +24 -0
- package/pkg/commands/zremrangebyscore.ts +10 -0
- package/pkg/commands/zrevrank.test.ts +23 -0
- package/pkg/commands/zrevrank.ts +14 -0
- package/pkg/commands/zscan.test.ts +48 -0
- package/pkg/commands/zscan.ts +30 -0
- package/pkg/commands/zscore.test.ts +18 -0
- package/pkg/commands/zscore.ts +14 -0
- package/pkg/commands/zunion.test.ts +251 -0
- package/pkg/commands/zunion.ts +54 -0
- package/pkg/commands/zunionstore.test.ts +274 -0
- package/pkg/commands/zunionstore.ts +51 -0
- package/pkg/error.ts +18 -0
- package/pkg/http.ts +349 -0
- package/pkg/index.ts +1 -0
- package/pkg/pipeline.test.ts +254 -0
- package/pkg/pipeline.ts +1401 -0
- package/pkg/read-your-writes.test.ts +115 -0
- package/pkg/redis.test.ts +250 -0
- package/pkg/redis.ts +1367 -0
- package/pkg/script.test.ts +58 -0
- package/pkg/script.ts +67 -0
- package/pkg/test-utils.test.ts +17 -0
- package/pkg/test-utils.ts +72 -0
- package/pkg/types.ts +35 -0
- package/pkg/util.ts +42 -0
- package/platforms/cloudflare.ts +144 -0
- package/platforms/fastly.ts +100 -0
- package/platforms/nodejs.ts +196 -0
- package/prettier.config.mjs +13 -0
- package/tsconfig.json +21 -0
- package/tsup.config.ts +8 -0
- package/version.ts +1 -0
- package/.releaserc +0 -14
- package/esm/deps/deno.land/x/base64@v0.2.1/base.js +0 -100
- package/esm/deps/deno.land/x/base64@v0.2.1/base64url.js +0 -9
- package/esm/deps/deno.land/x/sha1@v1.0.3/deps.js +0 -1
- package/esm/deps/deno.land/x/sha1@v1.0.3/mod.js +0 -191
- package/esm/deps/denopkg.com/chiefbiiko/std-encoding@v1.0.0/mod.js +0 -50
- package/esm/package.json +0 -3
- package/esm/pkg/commands/append.js +0 -9
- package/esm/pkg/commands/bitcount.js +0 -16
- package/esm/pkg/commands/bitop.js +0 -9
- package/esm/pkg/commands/bitpos.js +0 -9
- package/esm/pkg/commands/command.js +0 -57
- package/esm/pkg/commands/dbsize.js +0 -9
- package/esm/pkg/commands/decr.js +0 -9
- package/esm/pkg/commands/decrby.js +0 -9
- package/esm/pkg/commands/del.js +0 -9
- package/esm/pkg/commands/echo.js +0 -9
- package/esm/pkg/commands/eval.js +0 -9
- package/esm/pkg/commands/evalsha.js +0 -9
- package/esm/pkg/commands/exists.js +0 -9
- package/esm/pkg/commands/expire.js +0 -9
- package/esm/pkg/commands/expireat.js +0 -9
- package/esm/pkg/commands/flushall.js +0 -13
- package/esm/pkg/commands/flushdb.js +0 -13
- package/esm/pkg/commands/get.js +0 -9
- package/esm/pkg/commands/getbit.js +0 -9
- package/esm/pkg/commands/getdel.js +0 -9
- package/esm/pkg/commands/getrange.js +0 -9
- package/esm/pkg/commands/getset.js +0 -9
- package/esm/pkg/commands/hdel.js +0 -9
- package/esm/pkg/commands/hexists.js +0 -9
- package/esm/pkg/commands/hget.js +0 -9
- package/esm/pkg/commands/hgetall.js +0 -29
- package/esm/pkg/commands/hincrby.js +0 -9
- package/esm/pkg/commands/hincrbyfloat.js +0 -9
- package/esm/pkg/commands/hkeys.js +0 -9
- package/esm/pkg/commands/hlen.js +0 -9
- package/esm/pkg/commands/hmget.js +0 -35
- package/esm/pkg/commands/hmset.js +0 -13
- package/esm/pkg/commands/hrandfield.js +0 -39
- package/esm/pkg/commands/hscan.js +0 -16
- package/esm/pkg/commands/hset.js +0 -13
- package/esm/pkg/commands/hsetnx.js +0 -9
- package/esm/pkg/commands/hstrlen.js +0 -9
- package/esm/pkg/commands/hvals.js +0 -9
- package/esm/pkg/commands/incr.js +0 -9
- package/esm/pkg/commands/incrby.js +0 -9
- package/esm/pkg/commands/incrbyfloat.js +0 -9
- package/esm/pkg/commands/keys.js +0 -9
- package/esm/pkg/commands/lindex.js +0 -6
- package/esm/pkg/commands/linsert.js +0 -6
- package/esm/pkg/commands/llen.js +0 -9
- package/esm/pkg/commands/lmove.js +0 -9
- package/esm/pkg/commands/lpop.js +0 -9
- package/esm/pkg/commands/lpos.js +0 -19
- package/esm/pkg/commands/lpush.js +0 -9
- package/esm/pkg/commands/lpushx.js +0 -9
- package/esm/pkg/commands/lrange.js +0 -6
- package/esm/pkg/commands/lrem.js +0 -6
- package/esm/pkg/commands/lset.js +0 -6
- package/esm/pkg/commands/ltrim.js +0 -6
- package/esm/pkg/commands/mget.js +0 -9
- package/esm/pkg/commands/mod.js +0 -119
- package/esm/pkg/commands/mset.js +0 -12
- package/esm/pkg/commands/msetnx.js +0 -9
- package/esm/pkg/commands/persist.js +0 -9
- package/esm/pkg/commands/pexpire.js +0 -9
- package/esm/pkg/commands/pexpireat.js +0 -9
- package/esm/pkg/commands/ping.js +0 -13
- package/esm/pkg/commands/psetex.js +0 -9
- package/esm/pkg/commands/pttl.js +0 -9
- package/esm/pkg/commands/publish.js +0 -9
- package/esm/pkg/commands/randomkey.js +0 -9
- package/esm/pkg/commands/rename.js +0 -9
- package/esm/pkg/commands/renamenx.js +0 -9
- package/esm/pkg/commands/rpop.js +0 -9
- package/esm/pkg/commands/rpush.js +0 -9
- package/esm/pkg/commands/rpushx.js +0 -9
- package/esm/pkg/commands/sadd.js +0 -9
- package/esm/pkg/commands/scan.js +0 -19
- package/esm/pkg/commands/scard.js +0 -9
- package/esm/pkg/commands/script_exists.js +0 -12
- package/esm/pkg/commands/script_flush.js +0 -16
- package/esm/pkg/commands/script_load.js +0 -9
- package/esm/pkg/commands/sdiff.js +0 -9
- package/esm/pkg/commands/sdiffstore.js +0 -9
- package/esm/pkg/commands/set.js +0 -36
- package/esm/pkg/commands/setbit.js +0 -9
- package/esm/pkg/commands/setex.js +0 -9
- package/esm/pkg/commands/setnx.js +0 -9
- package/esm/pkg/commands/setrange.js +0 -9
- package/esm/pkg/commands/sinter.js +0 -9
- package/esm/pkg/commands/sinterstore.js +0 -9
- package/esm/pkg/commands/sismember.js +0 -9
- package/esm/pkg/commands/smembers.js +0 -9
- package/esm/pkg/commands/smismember.js +0 -9
- package/esm/pkg/commands/smove.js +0 -9
- package/esm/pkg/commands/spop.js +0 -13
- package/esm/pkg/commands/srandmember.js +0 -13
- package/esm/pkg/commands/srem.js +0 -9
- package/esm/pkg/commands/sscan.js +0 -16
- package/esm/pkg/commands/strlen.js +0 -9
- package/esm/pkg/commands/sunion.js +0 -9
- package/esm/pkg/commands/sunionstore.js +0 -9
- package/esm/pkg/commands/time.js +0 -9
- package/esm/pkg/commands/touch.js +0 -9
- package/esm/pkg/commands/ttl.js +0 -9
- package/esm/pkg/commands/type.js +0 -9
- package/esm/pkg/commands/unlink.js +0 -9
- package/esm/pkg/commands/zadd.js +0 -26
- package/esm/pkg/commands/zcard.js +0 -9
- package/esm/pkg/commands/zcount.js +0 -9
- package/esm/pkg/commands/zdiffstore.js +0 -9
- package/esm/pkg/commands/zincrby.js +0 -9
- package/esm/pkg/commands/zinterstore.js +0 -27
- package/esm/pkg/commands/zlexcount.js +0 -9
- package/esm/pkg/commands/zmscore.js +0 -10
- package/esm/pkg/commands/zpopmax.js +0 -13
- package/esm/pkg/commands/zpopmin.js +0 -13
- package/esm/pkg/commands/zrange.js +0 -26
- package/esm/pkg/commands/zrank.js +0 -9
- package/esm/pkg/commands/zrem.js +0 -9
- package/esm/pkg/commands/zremrangebylex.js +0 -9
- package/esm/pkg/commands/zremrangebyrank.js +0 -9
- package/esm/pkg/commands/zremrangebyscore.js +0 -9
- package/esm/pkg/commands/zrevrank.js +0 -9
- package/esm/pkg/commands/zscan.js +0 -16
- package/esm/pkg/commands/zscore.js +0 -9
- package/esm/pkg/commands/zunionstore.js +0 -27
- package/esm/pkg/error.js +0 -9
- package/esm/pkg/http.js +0 -174
- package/esm/pkg/pipeline.js +0 -1199
- package/esm/pkg/redis.js +0 -1190
- package/esm/pkg/script.js +0 -77
- package/esm/pkg/types.js +0 -1
- package/esm/pkg/util.js +0 -31
- package/esm/platforms/cloudflare.js +0 -70
- package/esm/platforms/fastly.js +0 -41
- package/esm/platforms/node_with_fetch.js +0 -86
- package/esm/platforms/nodejs.js +0 -80
- package/esm/version.js +0 -1
- package/script/deps/deno.land/x/base64@v0.2.1/base.js +0 -104
- package/script/deps/deno.land/x/base64@v0.2.1/base64url.js +0 -13
- package/script/deps/deno.land/x/sha1@v1.0.3/deps.js +0 -6
- package/script/deps/deno.land/x/sha1@v1.0.3/mod.js +0 -196
- package/script/deps/denopkg.com/chiefbiiko/std-encoding@v1.0.0/mod.js +0 -55
- package/script/package.json +0 -3
- package/script/pkg/commands/append.js +0 -13
- package/script/pkg/commands/bitcount.js +0 -20
- package/script/pkg/commands/bitop.js +0 -13
- package/script/pkg/commands/bitpos.js +0 -13
- package/script/pkg/commands/command.js +0 -61
- package/script/pkg/commands/dbsize.js +0 -13
- package/script/pkg/commands/decr.js +0 -13
- package/script/pkg/commands/decrby.js +0 -13
- package/script/pkg/commands/del.js +0 -13
- package/script/pkg/commands/echo.js +0 -13
- package/script/pkg/commands/eval.js +0 -13
- package/script/pkg/commands/evalsha.js +0 -13
- package/script/pkg/commands/exists.js +0 -13
- package/script/pkg/commands/expire.js +0 -13
- package/script/pkg/commands/expireat.js +0 -13
- package/script/pkg/commands/flushall.js +0 -17
- package/script/pkg/commands/flushdb.js +0 -17
- package/script/pkg/commands/get.js +0 -13
- package/script/pkg/commands/getbit.js +0 -13
- package/script/pkg/commands/getdel.js +0 -13
- package/script/pkg/commands/getrange.js +0 -13
- package/script/pkg/commands/getset.js +0 -13
- package/script/pkg/commands/hdel.js +0 -13
- package/script/pkg/commands/hexists.js +0 -13
- package/script/pkg/commands/hget.js +0 -13
- package/script/pkg/commands/hgetall.js +0 -33
- package/script/pkg/commands/hincrby.js +0 -13
- package/script/pkg/commands/hincrbyfloat.js +0 -13
- package/script/pkg/commands/hkeys.js +0 -13
- package/script/pkg/commands/hlen.js +0 -13
- package/script/pkg/commands/hmget.js +0 -39
- package/script/pkg/commands/hmset.js +0 -17
- package/script/pkg/commands/hrandfield.js +0 -43
- package/script/pkg/commands/hscan.js +0 -20
- package/script/pkg/commands/hset.js +0 -17
- package/script/pkg/commands/hsetnx.js +0 -13
- package/script/pkg/commands/hstrlen.js +0 -13
- package/script/pkg/commands/hvals.js +0 -13
- package/script/pkg/commands/incr.js +0 -13
- package/script/pkg/commands/incrby.js +0 -13
- package/script/pkg/commands/incrbyfloat.js +0 -13
- package/script/pkg/commands/keys.js +0 -13
- package/script/pkg/commands/lindex.js +0 -10
- package/script/pkg/commands/linsert.js +0 -10
- package/script/pkg/commands/llen.js +0 -13
- package/script/pkg/commands/lmove.js +0 -13
- package/script/pkg/commands/lpop.js +0 -13
- package/script/pkg/commands/lpos.js +0 -23
- package/script/pkg/commands/lpush.js +0 -13
- package/script/pkg/commands/lpushx.js +0 -13
- package/script/pkg/commands/lrange.js +0 -10
- package/script/pkg/commands/lrem.js +0 -10
- package/script/pkg/commands/lset.js +0 -10
- package/script/pkg/commands/ltrim.js +0 -10
- package/script/pkg/commands/mget.js +0 -13
- package/script/pkg/commands/mod.js +0 -135
- package/script/pkg/commands/mset.js +0 -16
- package/script/pkg/commands/msetnx.js +0 -13
- package/script/pkg/commands/persist.js +0 -13
- package/script/pkg/commands/pexpire.js +0 -13
- package/script/pkg/commands/pexpireat.js +0 -13
- package/script/pkg/commands/ping.js +0 -17
- package/script/pkg/commands/psetex.js +0 -13
- package/script/pkg/commands/pttl.js +0 -13
- package/script/pkg/commands/publish.js +0 -13
- package/script/pkg/commands/randomkey.js +0 -13
- package/script/pkg/commands/rename.js +0 -13
- package/script/pkg/commands/renamenx.js +0 -13
- package/script/pkg/commands/rpop.js +0 -13
- package/script/pkg/commands/rpush.js +0 -13
- package/script/pkg/commands/rpushx.js +0 -13
- package/script/pkg/commands/sadd.js +0 -13
- package/script/pkg/commands/scan.js +0 -23
- package/script/pkg/commands/scard.js +0 -13
- package/script/pkg/commands/script_exists.js +0 -16
- package/script/pkg/commands/script_flush.js +0 -20
- package/script/pkg/commands/script_load.js +0 -13
- package/script/pkg/commands/sdiff.js +0 -13
- package/script/pkg/commands/sdiffstore.js +0 -13
- package/script/pkg/commands/set.js +0 -40
- package/script/pkg/commands/setbit.js +0 -13
- package/script/pkg/commands/setex.js +0 -13
- package/script/pkg/commands/setnx.js +0 -13
- package/script/pkg/commands/setrange.js +0 -13
- package/script/pkg/commands/sinter.js +0 -13
- package/script/pkg/commands/sinterstore.js +0 -13
- package/script/pkg/commands/sismember.js +0 -13
- package/script/pkg/commands/smembers.js +0 -13
- package/script/pkg/commands/smismember.js +0 -13
- package/script/pkg/commands/smove.js +0 -13
- package/script/pkg/commands/spop.js +0 -17
- package/script/pkg/commands/srandmember.js +0 -17
- package/script/pkg/commands/srem.js +0 -13
- package/script/pkg/commands/sscan.js +0 -20
- package/script/pkg/commands/strlen.js +0 -13
- package/script/pkg/commands/sunion.js +0 -13
- package/script/pkg/commands/sunionstore.js +0 -13
- package/script/pkg/commands/time.js +0 -13
- package/script/pkg/commands/touch.js +0 -13
- package/script/pkg/commands/ttl.js +0 -13
- package/script/pkg/commands/type.js +0 -13
- package/script/pkg/commands/unlink.js +0 -13
- package/script/pkg/commands/zadd.js +0 -30
- package/script/pkg/commands/zcard.js +0 -13
- package/script/pkg/commands/zcount.js +0 -13
- package/script/pkg/commands/zdiffstore.js +0 -13
- package/script/pkg/commands/zincrby.js +0 -13
- package/script/pkg/commands/zinterstore.js +0 -31
- package/script/pkg/commands/zlexcount.js +0 -13
- package/script/pkg/commands/zmscore.js +0 -14
- package/script/pkg/commands/zpopmax.js +0 -17
- package/script/pkg/commands/zpopmin.js +0 -17
- package/script/pkg/commands/zrange.js +0 -30
- package/script/pkg/commands/zrank.js +0 -13
- package/script/pkg/commands/zrem.js +0 -13
- package/script/pkg/commands/zremrangebylex.js +0 -13
- package/script/pkg/commands/zremrangebyrank.js +0 -13
- package/script/pkg/commands/zremrangebyscore.js +0 -13
- package/script/pkg/commands/zrevrank.js +0 -13
- package/script/pkg/commands/zscan.js +0 -20
- package/script/pkg/commands/zscore.js +0 -13
- package/script/pkg/commands/zunionstore.js +0 -31
- package/script/pkg/error.js +0 -13
- package/script/pkg/http.js +0 -178
- package/script/pkg/pipeline.js +0 -1203
- package/script/pkg/redis.js +0 -1194
- package/script/pkg/script.js +0 -81
- package/script/pkg/types.js +0 -2
- package/script/pkg/util.js +0 -35
- package/script/platforms/cloudflare.js +0 -97
- package/script/platforms/fastly.js +0 -68
- package/script/platforms/node_with_fetch.js +0 -113
- package/script/platforms/nodejs.js +0 -107
- package/script/version.js +0 -4
- package/types/deps/deno.land/x/base64@v0.2.1/base.d.ts +0 -5
- package/types/deps/deno.land/x/base64@v0.2.1/base64url.d.ts +0 -1
- package/types/deps/deno.land/x/sha1@v1.0.3/deps.d.ts +0 -1
- package/types/deps/deno.land/x/sha1@v1.0.3/mod.d.ts +0 -26
- package/types/deps/denopkg.com/chiefbiiko/std-encoding@v1.0.0/mod.d.ts +0 -3
- package/types/pkg/commands/append.d.ts +0 -7
- package/types/pkg/commands/bitcount.d.ts +0 -8
- package/types/pkg/commands/bitop.d.ts +0 -12
- package/types/pkg/commands/bitpos.d.ts +0 -7
- package/types/pkg/commands/command.d.ts +0 -37
- package/types/pkg/commands/dbsize.d.ts +0 -7
- package/types/pkg/commands/decr.d.ts +0 -7
- package/types/pkg/commands/decrby.d.ts +0 -7
- package/types/pkg/commands/del.d.ts +0 -7
- package/types/pkg/commands/echo.d.ts +0 -7
- package/types/pkg/commands/eval.d.ts +0 -7
- package/types/pkg/commands/evalsha.d.ts +0 -7
- package/types/pkg/commands/exists.d.ts +0 -7
- package/types/pkg/commands/expire.d.ts +0 -7
- package/types/pkg/commands/expireat.d.ts +0 -7
- package/types/pkg/commands/flushall.d.ts +0 -9
- package/types/pkg/commands/flushdb.d.ts +0 -9
- package/types/pkg/commands/get.d.ts +0 -7
- package/types/pkg/commands/getbit.d.ts +0 -7
- package/types/pkg/commands/getdel.d.ts +0 -7
- package/types/pkg/commands/getrange.d.ts +0 -7
- package/types/pkg/commands/getset.d.ts +0 -7
- package/types/pkg/commands/hdel.d.ts +0 -7
- package/types/pkg/commands/hexists.d.ts +0 -7
- package/types/pkg/commands/hget.d.ts +0 -7
- package/types/pkg/commands/hgetall.d.ts +0 -7
- package/types/pkg/commands/hincrby.d.ts +0 -7
- package/types/pkg/commands/hincrbyfloat.d.ts +0 -7
- package/types/pkg/commands/hkeys.d.ts +0 -7
- package/types/pkg/commands/hlen.d.ts +0 -7
- package/types/pkg/commands/hmget.d.ts +0 -15
- package/types/pkg/commands/hmset.d.ts +0 -9
- package/types/pkg/commands/hrandfield.d.ts +0 -9
- package/types/pkg/commands/hscan.d.ts +0 -24
- package/types/pkg/commands/hset.d.ts +0 -9
- package/types/pkg/commands/hsetnx.d.ts +0 -7
- package/types/pkg/commands/hstrlen.d.ts +0 -7
- package/types/pkg/commands/hvals.d.ts +0 -7
- package/types/pkg/commands/incr.d.ts +0 -7
- package/types/pkg/commands/incrby.d.ts +0 -7
- package/types/pkg/commands/incrbyfloat.d.ts +0 -7
- package/types/pkg/commands/keys.d.ts +0 -7
- package/types/pkg/commands/lindex.d.ts +0 -4
- package/types/pkg/commands/linsert.d.ts +0 -9
- package/types/pkg/commands/llen.d.ts +0 -7
- package/types/pkg/commands/lmove.d.ts +0 -12
- package/types/pkg/commands/lpop.d.ts +0 -7
- package/types/pkg/commands/lpos.d.ts +0 -15
- package/types/pkg/commands/lpush.d.ts +0 -7
- package/types/pkg/commands/lpushx.d.ts +0 -7
- package/types/pkg/commands/lrange.d.ts +0 -4
- package/types/pkg/commands/lrem.d.ts +0 -4
- package/types/pkg/commands/lset.d.ts +0 -4
- package/types/pkg/commands/ltrim.d.ts +0 -4
- package/types/pkg/commands/mget.d.ts +0 -7
- package/types/pkg/commands/mod.d.ts +0 -119
- package/types/pkg/commands/mset.d.ts +0 -9
- package/types/pkg/commands/msetnx.d.ts +0 -9
- package/types/pkg/commands/persist.d.ts +0 -7
- package/types/pkg/commands/pexpire.d.ts +0 -7
- package/types/pkg/commands/pexpireat.d.ts +0 -7
- package/types/pkg/commands/ping.d.ts +0 -7
- package/types/pkg/commands/psetex.d.ts +0 -7
- package/types/pkg/commands/pttl.d.ts +0 -7
- package/types/pkg/commands/publish.d.ts +0 -7
- package/types/pkg/commands/randomkey.d.ts +0 -7
- package/types/pkg/commands/rename.d.ts +0 -7
- package/types/pkg/commands/renamenx.d.ts +0 -7
- package/types/pkg/commands/rpop.d.ts +0 -7
- package/types/pkg/commands/rpush.d.ts +0 -7
- package/types/pkg/commands/rpushx.d.ts +0 -7
- package/types/pkg/commands/sadd.d.ts +0 -7
- package/types/pkg/commands/scan.d.ts +0 -18
- package/types/pkg/commands/scard.d.ts +0 -7
- package/types/pkg/commands/script_exists.d.ts +0 -7
- package/types/pkg/commands/script_flush.d.ts +0 -14
- package/types/pkg/commands/script_load.d.ts +0 -7
- package/types/pkg/commands/sdiff.d.ts +0 -7
- package/types/pkg/commands/sdiffstore.d.ts +0 -7
- package/types/pkg/commands/set.d.ts +0 -55
- package/types/pkg/commands/setbit.d.ts +0 -7
- package/types/pkg/commands/setex.d.ts +0 -7
- package/types/pkg/commands/setnx.d.ts +0 -7
- package/types/pkg/commands/setrange.d.ts +0 -7
- package/types/pkg/commands/sinter.d.ts +0 -7
- package/types/pkg/commands/sinterstore.d.ts +0 -7
- package/types/pkg/commands/sismember.d.ts +0 -7
- package/types/pkg/commands/smembers.d.ts +0 -7
- package/types/pkg/commands/smismember.d.ts +0 -7
- package/types/pkg/commands/smove.d.ts +0 -7
- package/types/pkg/commands/spop.d.ts +0 -7
- package/types/pkg/commands/srandmember.d.ts +0 -7
- package/types/pkg/commands/srem.d.ts +0 -7
- package/types/pkg/commands/sscan.d.ts +0 -24
- package/types/pkg/commands/strlen.d.ts +0 -7
- package/types/pkg/commands/sunion.d.ts +0 -7
- package/types/pkg/commands/sunionstore.d.ts +0 -7
- package/types/pkg/commands/time.d.ts +0 -7
- package/types/pkg/commands/touch.d.ts +0 -7
- package/types/pkg/commands/ttl.d.ts +0 -7
- package/types/pkg/commands/type.d.ts +0 -8
- package/types/pkg/commands/unlink.d.ts +0 -7
- package/types/pkg/commands/zadd.d.ts +0 -35
- package/types/pkg/commands/zcard.d.ts +0 -7
- package/types/pkg/commands/zcount.d.ts +0 -7
- package/types/pkg/commands/zdiffstore.d.ts +0 -7
- package/types/pkg/commands/zincrby.d.ts +0 -7
- package/types/pkg/commands/zinterstore.d.ts +0 -30
- package/types/pkg/commands/zlexcount.d.ts +0 -7
- package/types/pkg/commands/zmscore.d.ts +0 -7
- package/types/pkg/commands/zpopmax.d.ts +0 -7
- package/types/pkg/commands/zpopmin.d.ts +0 -7
- package/types/pkg/commands/zrange.d.ts +0 -42
- package/types/pkg/commands/zrank.d.ts +0 -7
- package/types/pkg/commands/zrem.d.ts +0 -7
- package/types/pkg/commands/zremrangebylex.d.ts +0 -7
- package/types/pkg/commands/zremrangebyrank.d.ts +0 -7
- package/types/pkg/commands/zremrangebyscore.d.ts +0 -7
- package/types/pkg/commands/zrevrank.d.ts +0 -7
- package/types/pkg/commands/zscan.d.ts +0 -24
- package/types/pkg/commands/zscore.d.ts +0 -7
- package/types/pkg/commands/zunionstore.d.ts +0 -30
- package/types/pkg/error.d.ts +0 -6
- package/types/pkg/http.d.ts +0 -88
- package/types/pkg/pipeline.d.ts +0 -577
- package/types/pkg/redis.d.ts +0 -572
- package/types/pkg/script.d.ts +0 -42
- package/types/pkg/types.d.ts +0 -18
- package/types/pkg/util.d.ts +0 -1
- package/types/platforms/cloudflare.d.ts +0 -43
- package/types/platforms/fastly.d.ts +0 -41
- package/types/platforms/node_with_fetch.d.ts +0 -63
- package/types/platforms/nodejs.d.ts +0 -78
- package/types/version.d.ts +0 -1
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./append.js"), exports);
|
|
18
|
-
__exportStar(require("./bitcount.js"), exports);
|
|
19
|
-
__exportStar(require("./bitop.js"), exports);
|
|
20
|
-
__exportStar(require("./bitpos.js"), exports);
|
|
21
|
-
__exportStar(require("./command.js"), exports);
|
|
22
|
-
__exportStar(require("./dbsize.js"), exports);
|
|
23
|
-
__exportStar(require("./decr.js"), exports);
|
|
24
|
-
__exportStar(require("./decrby.js"), exports);
|
|
25
|
-
__exportStar(require("./del.js"), exports);
|
|
26
|
-
__exportStar(require("./echo.js"), exports);
|
|
27
|
-
__exportStar(require("./eval.js"), exports);
|
|
28
|
-
__exportStar(require("./evalsha.js"), exports);
|
|
29
|
-
__exportStar(require("./exists.js"), exports);
|
|
30
|
-
__exportStar(require("./expire.js"), exports);
|
|
31
|
-
__exportStar(require("./expireat.js"), exports);
|
|
32
|
-
__exportStar(require("./flushall.js"), exports);
|
|
33
|
-
__exportStar(require("./flushdb.js"), exports);
|
|
34
|
-
__exportStar(require("./get.js"), exports);
|
|
35
|
-
__exportStar(require("./getbit.js"), exports);
|
|
36
|
-
__exportStar(require("./getdel.js"), exports);
|
|
37
|
-
__exportStar(require("./getrange.js"), exports);
|
|
38
|
-
__exportStar(require("./getset.js"), exports);
|
|
39
|
-
__exportStar(require("./hdel.js"), exports);
|
|
40
|
-
__exportStar(require("./hexists.js"), exports);
|
|
41
|
-
__exportStar(require("./hget.js"), exports);
|
|
42
|
-
__exportStar(require("./smismember.js"), exports);
|
|
43
|
-
__exportStar(require("./hgetall.js"), exports);
|
|
44
|
-
__exportStar(require("./hincrby.js"), exports);
|
|
45
|
-
__exportStar(require("./hincrbyfloat.js"), exports);
|
|
46
|
-
__exportStar(require("./hkeys.js"), exports);
|
|
47
|
-
__exportStar(require("./hlen.js"), exports);
|
|
48
|
-
__exportStar(require("./hmget.js"), exports);
|
|
49
|
-
__exportStar(require("./hmset.js"), exports);
|
|
50
|
-
__exportStar(require("./hrandfield.js"), exports);
|
|
51
|
-
__exportStar(require("./hscan.js"), exports);
|
|
52
|
-
__exportStar(require("./hset.js"), exports);
|
|
53
|
-
__exportStar(require("./hsetnx.js"), exports);
|
|
54
|
-
__exportStar(require("./hstrlen.js"), exports);
|
|
55
|
-
__exportStar(require("./hvals.js"), exports);
|
|
56
|
-
__exportStar(require("./incr.js"), exports);
|
|
57
|
-
__exportStar(require("./incrby.js"), exports);
|
|
58
|
-
__exportStar(require("./incrbyfloat.js"), exports);
|
|
59
|
-
__exportStar(require("./keys.js"), exports);
|
|
60
|
-
__exportStar(require("./lindex.js"), exports);
|
|
61
|
-
__exportStar(require("./linsert.js"), exports);
|
|
62
|
-
__exportStar(require("./llen.js"), exports);
|
|
63
|
-
__exportStar(require("./lmove.js"), exports);
|
|
64
|
-
__exportStar(require("./lpop.js"), exports);
|
|
65
|
-
__exportStar(require("./lpos.js"), exports);
|
|
66
|
-
__exportStar(require("./lpush.js"), exports);
|
|
67
|
-
__exportStar(require("./lpushx.js"), exports);
|
|
68
|
-
__exportStar(require("./lrange.js"), exports);
|
|
69
|
-
__exportStar(require("./lrem.js"), exports);
|
|
70
|
-
__exportStar(require("./lset.js"), exports);
|
|
71
|
-
__exportStar(require("./ltrim.js"), exports);
|
|
72
|
-
__exportStar(require("./mget.js"), exports);
|
|
73
|
-
__exportStar(require("./mset.js"), exports);
|
|
74
|
-
__exportStar(require("./msetnx.js"), exports);
|
|
75
|
-
__exportStar(require("./persist.js"), exports);
|
|
76
|
-
__exportStar(require("./pexpire.js"), exports);
|
|
77
|
-
__exportStar(require("./pexpireat.js"), exports);
|
|
78
|
-
__exportStar(require("./ping.js"), exports);
|
|
79
|
-
__exportStar(require("./psetex.js"), exports);
|
|
80
|
-
__exportStar(require("./pttl.js"), exports);
|
|
81
|
-
__exportStar(require("./publish.js"), exports);
|
|
82
|
-
__exportStar(require("./randomkey.js"), exports);
|
|
83
|
-
__exportStar(require("./rename.js"), exports);
|
|
84
|
-
__exportStar(require("./renamenx.js"), exports);
|
|
85
|
-
__exportStar(require("./rpop.js"), exports);
|
|
86
|
-
__exportStar(require("./rpush.js"), exports);
|
|
87
|
-
__exportStar(require("./rpushx.js"), exports);
|
|
88
|
-
__exportStar(require("./sadd.js"), exports);
|
|
89
|
-
__exportStar(require("./scan.js"), exports);
|
|
90
|
-
__exportStar(require("./scard.js"), exports);
|
|
91
|
-
__exportStar(require("./script_exists.js"), exports);
|
|
92
|
-
__exportStar(require("./script_flush.js"), exports);
|
|
93
|
-
__exportStar(require("./script_load.js"), exports);
|
|
94
|
-
__exportStar(require("./sdiff.js"), exports);
|
|
95
|
-
__exportStar(require("./sdiffstore.js"), exports);
|
|
96
|
-
__exportStar(require("./set.js"), exports);
|
|
97
|
-
__exportStar(require("./setbit.js"), exports);
|
|
98
|
-
__exportStar(require("./setex.js"), exports);
|
|
99
|
-
__exportStar(require("./setnx.js"), exports);
|
|
100
|
-
__exportStar(require("./setrange.js"), exports);
|
|
101
|
-
__exportStar(require("./sinter.js"), exports);
|
|
102
|
-
__exportStar(require("./sinterstore.js"), exports);
|
|
103
|
-
__exportStar(require("./sismember.js"), exports);
|
|
104
|
-
__exportStar(require("./smembers.js"), exports);
|
|
105
|
-
__exportStar(require("./smove.js"), exports);
|
|
106
|
-
__exportStar(require("./spop.js"), exports);
|
|
107
|
-
__exportStar(require("./srandmember.js"), exports);
|
|
108
|
-
__exportStar(require("./srem.js"), exports);
|
|
109
|
-
__exportStar(require("./sscan.js"), exports);
|
|
110
|
-
__exportStar(require("./strlen.js"), exports);
|
|
111
|
-
__exportStar(require("./sunion.js"), exports);
|
|
112
|
-
__exportStar(require("./sunionstore.js"), exports);
|
|
113
|
-
__exportStar(require("./time.js"), exports);
|
|
114
|
-
__exportStar(require("./touch.js"), exports);
|
|
115
|
-
__exportStar(require("./ttl.js"), exports);
|
|
116
|
-
__exportStar(require("./type.js"), exports);
|
|
117
|
-
__exportStar(require("./unlink.js"), exports);
|
|
118
|
-
__exportStar(require("./zadd.js"), exports);
|
|
119
|
-
__exportStar(require("./zcard.js"), exports);
|
|
120
|
-
__exportStar(require("./zcount.js"), exports);
|
|
121
|
-
__exportStar(require("./zincrby.js"), exports);
|
|
122
|
-
__exportStar(require("./zinterstore.js"), exports);
|
|
123
|
-
__exportStar(require("./zlexcount.js"), exports);
|
|
124
|
-
__exportStar(require("./zpopmax.js"), exports);
|
|
125
|
-
__exportStar(require("./zpopmin.js"), exports);
|
|
126
|
-
__exportStar(require("./zrange.js"), exports);
|
|
127
|
-
__exportStar(require("./zrank.js"), exports);
|
|
128
|
-
__exportStar(require("./zrem.js"), exports);
|
|
129
|
-
__exportStar(require("./zremrangebylex.js"), exports);
|
|
130
|
-
__exportStar(require("./zremrangebyrank.js"), exports);
|
|
131
|
-
__exportStar(require("./zremrangebyscore.js"), exports);
|
|
132
|
-
__exportStar(require("./zrevrank.js"), exports);
|
|
133
|
-
__exportStar(require("./zscan.js"), exports);
|
|
134
|
-
__exportStar(require("./zscore.js"), exports);
|
|
135
|
-
__exportStar(require("./zunionstore.js"), exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MSetCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/mset
|
|
7
|
-
*/
|
|
8
|
-
class MSetCommand extends command_js_1.Command {
|
|
9
|
-
constructor([kv], opts) {
|
|
10
|
-
super([
|
|
11
|
-
"mset",
|
|
12
|
-
...Object.entries(kv).flatMap(([key, value]) => [key, value]),
|
|
13
|
-
], opts);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.MSetCommand = MSetCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MSetNXCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/msetnx
|
|
7
|
-
*/
|
|
8
|
-
class MSetNXCommand extends command_js_1.Command {
|
|
9
|
-
constructor([kv], opts) {
|
|
10
|
-
super(["msetnx", ...Object.entries(kv).flatMap((_) => _)], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.MSetNXCommand = MSetNXCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PersistCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/persist
|
|
7
|
-
*/
|
|
8
|
-
class PersistCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["persist", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PersistCommand = PersistCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PExpireCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/pexpire
|
|
7
|
-
*/
|
|
8
|
-
class PExpireCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["pexpire", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PExpireCommand = PExpireCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PExpireAtCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/pexpireat
|
|
7
|
-
*/
|
|
8
|
-
class PExpireAtCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["pexpireat", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PExpireAtCommand = PExpireAtCommand;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PingCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/ping
|
|
7
|
-
*/
|
|
8
|
-
class PingCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
const command = ["ping"];
|
|
11
|
-
if (typeof cmd !== "undefined" && typeof cmd[0] !== "undefined") {
|
|
12
|
-
command.push(cmd[0]);
|
|
13
|
-
}
|
|
14
|
-
super(command, opts);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.PingCommand = PingCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PSetEXCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/psetex
|
|
7
|
-
*/
|
|
8
|
-
class PSetEXCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["psetex", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PSetEXCommand = PSetEXCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PTtlCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/pttl
|
|
7
|
-
*/
|
|
8
|
-
class PTtlCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["pttl", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PTtlCommand = PTtlCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublishCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/publish
|
|
7
|
-
*/
|
|
8
|
-
class PublishCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["publish", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PublishCommand = PublishCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RandomKeyCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/randomkey
|
|
7
|
-
*/
|
|
8
|
-
class RandomKeyCommand extends command_js_1.Command {
|
|
9
|
-
constructor(opts) {
|
|
10
|
-
super(["randomkey"], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.RandomKeyCommand = RandomKeyCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RenameCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/rename
|
|
7
|
-
*/
|
|
8
|
-
class RenameCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["rename", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.RenameCommand = RenameCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RenameNXCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/renamenx
|
|
7
|
-
*/
|
|
8
|
-
class RenameNXCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["renamenx", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.RenameNXCommand = RenameNXCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RPopCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/rpop
|
|
7
|
-
*/
|
|
8
|
-
class RPopCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["rpop", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.RPopCommand = RPopCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RPushCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/rpush
|
|
7
|
-
*/
|
|
8
|
-
class RPushCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["rpush", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.RPushCommand = RPushCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RPushXCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/rpushx
|
|
7
|
-
*/
|
|
8
|
-
class RPushXCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["rpushx", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.RPushXCommand = RPushXCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SAddCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/sadd
|
|
7
|
-
*/
|
|
8
|
-
class SAddCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["sadd", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SAddCommand = SAddCommand;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScanCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/scan
|
|
7
|
-
*/
|
|
8
|
-
class ScanCommand extends command_js_1.Command {
|
|
9
|
-
constructor([cursor, opts], cmdOpts) {
|
|
10
|
-
const command = ["scan", cursor];
|
|
11
|
-
if (opts?.match) {
|
|
12
|
-
command.push("match", opts.match);
|
|
13
|
-
}
|
|
14
|
-
if (typeof opts?.count === "number") {
|
|
15
|
-
command.push("count", opts.count);
|
|
16
|
-
}
|
|
17
|
-
if (opts?.type && opts.type.length > 0) {
|
|
18
|
-
command.push("type", opts.type);
|
|
19
|
-
}
|
|
20
|
-
super(command, cmdOpts);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.ScanCommand = ScanCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SCardCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/scard
|
|
7
|
-
*/
|
|
8
|
-
class SCardCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["scard", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SCardCommand = SCardCommand;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScriptExistsCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/script-exists
|
|
7
|
-
*/
|
|
8
|
-
class ScriptExistsCommand extends command_js_1.Command {
|
|
9
|
-
constructor(hashes, opts) {
|
|
10
|
-
super(["script", "exists", ...hashes], {
|
|
11
|
-
deserialize: (result) => result,
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.ScriptExistsCommand = ScriptExistsCommand;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScriptFlushCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/script-flush
|
|
7
|
-
*/
|
|
8
|
-
class ScriptFlushCommand extends command_js_1.Command {
|
|
9
|
-
constructor([opts], cmdOpts) {
|
|
10
|
-
const cmd = ["script", "flush"];
|
|
11
|
-
if (opts?.sync) {
|
|
12
|
-
cmd.push("sync");
|
|
13
|
-
}
|
|
14
|
-
else if (opts?.async) {
|
|
15
|
-
cmd.push("async");
|
|
16
|
-
}
|
|
17
|
-
super(cmd, cmdOpts);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.ScriptFlushCommand = ScriptFlushCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScriptLoadCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/script-load
|
|
7
|
-
*/
|
|
8
|
-
class ScriptLoadCommand extends command_js_1.Command {
|
|
9
|
-
constructor(args, opts) {
|
|
10
|
-
super(["script", "load", ...args], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.ScriptLoadCommand = ScriptLoadCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SDiffCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/sdiff
|
|
7
|
-
*/
|
|
8
|
-
class SDiffCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["sdiff", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SDiffCommand = SDiffCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SDiffStoreCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/sdiffstore
|
|
7
|
-
*/
|
|
8
|
-
class SDiffStoreCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["sdiffstore", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SDiffStoreCommand = SDiffStoreCommand;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/set
|
|
7
|
-
*/
|
|
8
|
-
class SetCommand extends command_js_1.Command {
|
|
9
|
-
constructor([key, value, opts], cmdOpts) {
|
|
10
|
-
const command = ["set", key, value];
|
|
11
|
-
if (opts) {
|
|
12
|
-
if ("nx" in opts && opts.nx) {
|
|
13
|
-
command.push("nx");
|
|
14
|
-
}
|
|
15
|
-
else if ("xx" in opts && opts.xx) {
|
|
16
|
-
command.push("xx");
|
|
17
|
-
}
|
|
18
|
-
if ("get" in opts && opts.get) {
|
|
19
|
-
command.push("get");
|
|
20
|
-
}
|
|
21
|
-
if ("ex" in opts && typeof opts.ex === "number") {
|
|
22
|
-
command.push("ex", opts.ex);
|
|
23
|
-
}
|
|
24
|
-
else if ("px" in opts && typeof opts.px === "number") {
|
|
25
|
-
command.push("px", opts.px);
|
|
26
|
-
}
|
|
27
|
-
else if ("exat" in opts && typeof opts.exat === "number") {
|
|
28
|
-
command.push("exat", opts.exat);
|
|
29
|
-
}
|
|
30
|
-
else if ("pxat" in opts && typeof opts.pxat === "number") {
|
|
31
|
-
command.push("pxat", opts.pxat);
|
|
32
|
-
}
|
|
33
|
-
else if ("keepTtl" in opts && opts.keepTtl) {
|
|
34
|
-
command.push("keepTtl", opts.keepTtl);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
super(command, cmdOpts);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.SetCommand = SetCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetBitCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/setbit
|
|
7
|
-
*/
|
|
8
|
-
class SetBitCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["setbit", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SetBitCommand = SetBitCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetExCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/setex
|
|
7
|
-
*/
|
|
8
|
-
class SetExCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["setex", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SetExCommand = SetExCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetNxCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/setnx
|
|
7
|
-
*/
|
|
8
|
-
class SetNxCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["setnx", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SetNxCommand = SetNxCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetRangeCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/setrange
|
|
7
|
-
*/
|
|
8
|
-
class SetRangeCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["setrange", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SetRangeCommand = SetRangeCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SInterCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/sinter
|
|
7
|
-
*/
|
|
8
|
-
class SInterCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["sinter", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SInterCommand = SInterCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SInterStoreCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/sinterstore
|
|
7
|
-
*/
|
|
8
|
-
class SInterStoreCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["sinterstore", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SInterStoreCommand = SInterStoreCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SIsMemberCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/sismember
|
|
7
|
-
*/
|
|
8
|
-
class SIsMemberCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["sismember", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SIsMemberCommand = SIsMemberCommand;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SMembersCommand = void 0;
|
|
4
|
-
const command_js_1 = require("./command.js");
|
|
5
|
-
/**
|
|
6
|
-
* @see https://redis.io/commands/smembers
|
|
7
|
-
*/
|
|
8
|
-
class SMembersCommand extends command_js_1.Command {
|
|
9
|
-
constructor(cmd, opts) {
|
|
10
|
-
super(["smembers", ...cmd], opts);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.SMembersCommand = SMembersCommand;
|