agenttwin 0.3.21 → 0.3.22
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/dist/api.js +2113 -609
- package/dist/dashboard/assets/dashboard/agent-home.css +7 -7
- package/dist/dashboard/assets/dashboard/bay-morning.webp +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-afternoon.webp +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-portrait.webp +0 -0
- package/dist/dashboard/assets/dashboard/moonlit-coast.webp +0 -0
- package/dist/dashboard/assets/next/static/chunks/5663-403316746afad10e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/{page-9c11295678539a5f.js → page-0e0392368e0a891e.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-4981ea4966b19e3e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-dd4ac0f5f36e6bfa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{page-34574448d210c775.js → page-de0fe6d84be21e6a.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-360cbffc57981f6b.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/{page-07c8054d57c9089b.js → page-3e86fffabfa87d88.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{webpack-40324749d289e4a5.js → webpack-be6e526fd530c797.js} +1 -1
- package/dist/dashboard/assets/next/static/css/{42045de5f39b50ca.css → 37d81e1d2804cc5f.css} +1 -1
- package/dist/dashboard/assets/next/static/css/69ec1bae997c3bb0.css +1 -0
- package/dist/dashboard/assets/next/static/css/ad85402a1595e56e.css +1 -0
- package/dist/dashboard/assets/next/static/css/{4bbe78c2fe206b92.css → da981fb878a02b8c.css} +1 -1
- package/dist/dashboard/assets/next/static/media/bay-morning.82669113.webp +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-afternoon.0aa49492.webp +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-portrait.89fc667a.webp +0 -0
- package/dist/dashboard/assets/next/static/media/moonlit-coast.09739ef4.webp +0 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/engine.js +6385 -4973
- package/dist/gateway.js +2194 -604
- package/dist/twins/catalog.json +6020 -0
- package/dist/twins/engine/v2/THIRD-PARTY.txt +25 -0
- package/dist/twins/engine/v2/chunks/2CHBP57N.mjs +8 -0
- package/dist/twins/engine/v2/chunks/4CPL6MPF.mjs +30 -0
- package/dist/twins/engine/v2/chunks/OYLYKZGD.mjs +2 -0
- package/dist/twins/engine/v2/chunks/SQSP35HM.mjs +38 -0
- package/dist/twins/engine/v2/chunks/YSJQQVUM.mjs +2 -0
- package/dist/twins/engine/v2/react-dom_client.mjs +272 -0
- package/dist/twins/engine/v2/react-dom_server.mjs +263 -0
- package/dist/twins/engine/v2/react.mjs +2 -0
- package/dist/twins/engine/v2/react_jsx-runtime.mjs +31 -0
- package/dist/twins/engine/v2/volter_world-core.mjs +195 -0
- package/dist/twins/engine/v2/volter_world-core_app-route.mjs +2 -0
- package/dist/twins/engine/v2/volter_world-core_network-policy.mjs +2 -0
- package/dist/twins/engine/v3/THIRD-PARTY.txt +65 -0
- package/dist/twins/engine/v3/chunks/2CHBP57N.mjs +8 -0
- package/dist/twins/engine/v3/chunks/2YSSPA5O.mjs +65 -0
- package/dist/twins/engine/v3/chunks/5PWRY4UK.mjs +154 -0
- package/dist/twins/engine/v3/chunks/7XRKSFFJ.mjs +2 -0
- package/dist/twins/engine/v3/chunks/AWOWH2H5.mjs +2 -0
- package/dist/twins/engine/v3/chunks/C46M5U3Q.mjs +2 -0
- package/dist/twins/engine/v3/chunks/MFH2VZPP.mjs +2 -0
- package/dist/twins/engine/v3/chunks/MWCO5UV3.mjs +2 -0
- package/dist/twins/engine/v3/chunks/N5BL5RDF.mjs +313 -0
- package/dist/twins/engine/v3/chunks/O7HGPMXG.mjs +2 -0
- package/dist/twins/engine/v3/chunks/OYLYKZGD.mjs +2 -0
- package/dist/twins/engine/v3/chunks/PLB7HTON.mjs +8 -0
- package/dist/twins/engine/v3/chunks/TY4LDBVH.mjs +7 -0
- package/dist/twins/engine/v3/chunks/VDIRUSCM.mjs +2 -0
- package/dist/twins/engine/v3/chunks/WGUCFQK6.mjs +2 -0
- package/dist/twins/engine/v3/chunks/WPATONSC.mjs +2 -0
- package/dist/twins/engine/v3/react_jsx-runtime.mjs +2 -0
- package/dist/twins/engine/v3/volter_world-core.mjs +2 -0
- package/dist/twins/engine/v3/volter_world-ui.mjs +559 -0
- package/dist/twins/packs/ahrefs/LICENSE +202 -0
- package/dist/twins/packs/ahrefs/NOTICE +7 -0
- package/dist/twins/packs/ahrefs/index.mjs +2 -0
- package/dist/twins/packs/ai-gateway/LICENSE +202 -0
- package/dist/twins/packs/ai-gateway/NOTICE +7 -0
- package/dist/twins/packs/ai-gateway/index.mjs +14 -0
- package/dist/twins/packs/airtable/LICENSE +202 -0
- package/dist/twins/packs/airtable/NOTICE +7 -0
- package/dist/twins/packs/airtable/index.mjs +2 -0
- package/dist/twins/packs/algolia/LICENSE +202 -0
- package/dist/twins/packs/algolia/NOTICE +7 -0
- package/dist/twins/packs/algolia/index.mjs +2 -0
- package/dist/twins/packs/ambientcg/LICENSE +202 -0
- package/dist/twins/packs/ambientcg/NOTICE +7 -0
- package/dist/twins/packs/ambientcg/index.mjs +2 -0
- package/dist/twins/packs/anthropic/LICENSE +202 -0
- package/dist/twins/packs/anthropic/NOTICE +7 -0
- package/dist/twins/packs/anthropic/index.mjs +18 -0
- package/dist/twins/packs/assemblyai/LICENSE +202 -0
- package/dist/twins/packs/assemblyai/NOTICE +7 -0
- package/dist/twins/packs/assemblyai/index.mjs +11 -0
- package/dist/twins/packs/aws/LICENSE +202 -0
- package/dist/twins/packs/aws/NOTICE +7 -0
- package/dist/twins/packs/aws/index.mjs +2 -0
- package/dist/twins/packs/azure/LICENSE +202 -0
- package/dist/twins/packs/azure/NOTICE +7 -0
- package/dist/twins/packs/azure/index.mjs +38 -0
- package/dist/twins/packs/azureformrecognizer/LICENSE +202 -0
- package/dist/twins/packs/azureformrecognizer/NOTICE +7 -0
- package/dist/twins/packs/azureformrecognizer/index.mjs +3 -0
- package/dist/twins/packs/bitly/LICENSE +202 -0
- package/dist/twins/packs/bitly/NOTICE +7 -0
- package/dist/twins/packs/bitly/index.mjs +2 -0
- package/dist/twins/packs/bluesky/LICENSE +202 -0
- package/dist/twins/packs/bluesky/NOTICE +7 -0
- package/dist/twins/packs/bluesky/index.mjs +30 -0
- package/dist/twins/packs/calcom/LICENSE +202 -0
- package/dist/twins/packs/calcom/NOTICE +7 -0
- package/dist/twins/packs/calcom/index.mjs +2 -0
- package/dist/twins/packs/clerk/LICENSE +202 -0
- package/dist/twins/packs/clerk/NOTICE +7 -0
- package/dist/twins/packs/clerk/index.mjs +5 -0
- package/dist/twins/packs/cloudflare/LICENSE +202 -0
- package/dist/twins/packs/cloudflare/NOTICE +7 -0
- package/dist/twins/packs/cloudflare/index.mjs +79 -0
- package/dist/twins/packs/cohere/LICENSE +202 -0
- package/dist/twins/packs/cohere/NOTICE +7 -0
- package/dist/twins/packs/cohere/index.mjs +2 -0
- package/dist/twins/packs/datadog/LICENSE +202 -0
- package/dist/twins/packs/datadog/NOTICE +7 -0
- package/dist/twins/packs/datadog/index.mjs +3 -0
- package/dist/twins/packs/deepinfra/LICENSE +202 -0
- package/dist/twins/packs/deepinfra/NOTICE +7 -0
- package/dist/twins/packs/deepinfra/index.mjs +13 -0
- package/dist/twins/packs/deepseek/LICENSE +202 -0
- package/dist/twins/packs/deepseek/NOTICE +7 -0
- package/dist/twins/packs/deepseek/index.mjs +12 -0
- package/dist/twins/packs/discord/LICENSE +202 -0
- package/dist/twins/packs/discord/NOTICE +7 -0
- package/dist/twins/packs/discord/index.mjs +2 -0
- package/dist/twins/packs/duckduckgo/LICENSE +202 -0
- package/dist/twins/packs/duckduckgo/NOTICE +7 -0
- package/dist/twins/packs/duckduckgo/index.mjs +532 -0
- package/dist/twins/packs/dynadot/LICENSE +202 -0
- package/dist/twins/packs/dynadot/NOTICE +7 -0
- package/dist/twins/packs/dynadot/index.mjs +2 -0
- package/dist/twins/packs/e2b/LICENSE +202 -0
- package/dist/twins/packs/e2b/NOTICE +7 -0
- package/dist/twins/packs/e2b/index.mjs +2 -0
- package/dist/twins/packs/elevenlabs/LICENSE +202 -0
- package/dist/twins/packs/elevenlabs/NOTICE +7 -0
- package/dist/twins/packs/elevenlabs/index.mjs +4 -0
- package/dist/twins/packs/expo/LICENSE +202 -0
- package/dist/twins/packs/expo/NOTICE +7 -0
- package/dist/twins/packs/expo/index.mjs +2 -0
- package/dist/twins/packs/fal/LICENSE +202 -0
- package/dist/twins/packs/fal/NOTICE +7 -0
- package/dist/twins/packs/fal/index.mjs +2 -0
- package/dist/twins/packs/figma/LICENSE +202 -0
- package/dist/twins/packs/figma/NOTICE +7 -0
- package/dist/twins/packs/figma/index.mjs +2 -0
- package/dist/twins/packs/firecrawl/LICENSE +202 -0
- package/dist/twins/packs/firecrawl/NOTICE +7 -0
- package/dist/twins/packs/firecrawl/index.mjs +9 -0
- package/dist/twins/packs/fireworks/LICENSE +202 -0
- package/dist/twins/packs/fireworks/NOTICE +7 -0
- package/dist/twins/packs/fireworks/index.mjs +13 -0
- package/dist/twins/packs/fly/LICENSE +202 -0
- package/dist/twins/packs/fly/NOTICE +7 -0
- package/dist/twins/packs/fly/index.mjs +2 -0
- package/dist/twins/packs/gcs/LICENSE +202 -0
- package/dist/twins/packs/gcs/NOTICE +7 -0
- package/dist/twins/packs/gcs/index.mjs +8 -0
- package/dist/twins/packs/gemini/LICENSE +202 -0
- package/dist/twins/packs/gemini/NOTICE +7 -0
- package/dist/twins/packs/gemini/index.mjs +7 -0
- package/dist/twins/packs/github/LICENSE +202 -0
- package/dist/twins/packs/github/NOTICE +7 -0
- package/dist/twins/packs/github/index.mjs +75153 -0
- package/dist/twins/packs/googleads/LICENSE +202 -0
- package/dist/twins/packs/googleads/NOTICE +7 -0
- package/dist/twins/packs/googleads/index.mjs +3 -0
- package/dist/twins/packs/googlemaps/LICENSE +202 -0
- package/dist/twins/packs/googlemaps/NOTICE +7 -0
- package/dist/twins/packs/googlemaps/index.mjs +2 -0
- package/dist/twins/packs/googleoauth/LICENSE +202 -0
- package/dist/twins/packs/googleoauth/NOTICE +7 -0
- package/dist/twins/packs/googleoauth/index.mjs +2 -0
- package/dist/twins/packs/hackernews/LICENSE +202 -0
- package/dist/twins/packs/hackernews/NOTICE +7 -0
- package/dist/twins/packs/hackernews/index.mjs +35 -0
- package/dist/twins/packs/huggingface/LICENSE +202 -0
- package/dist/twins/packs/huggingface/NOTICE +7 -0
- package/dist/twins/packs/huggingface/index.mjs +9 -0
- package/dist/twins/packs/inngest/LICENSE +202 -0
- package/dist/twins/packs/inngest/NOTICE +7 -0
- package/dist/twins/packs/inngest/index.mjs +2 -0
- package/dist/twins/packs/instagram/LICENSE +202 -0
- package/dist/twins/packs/instagram/NOTICE +7 -0
- package/dist/twins/packs/instagram/index.mjs +2 -0
- package/dist/twins/packs/jira/LICENSE +202 -0
- package/dist/twins/packs/jira/NOTICE +7 -0
- package/dist/twins/packs/jira/index.mjs +2 -0
- package/dist/twins/packs/langfuse/LICENSE +202 -0
- package/dist/twins/packs/langfuse/NOTICE +7 -0
- package/dist/twins/packs/langfuse/index.mjs +2 -0
- package/dist/twins/packs/linear/LICENSE +202 -0
- package/dist/twins/packs/linear/NOTICE +7 -0
- package/dist/twins/packs/linear/index.mjs +52866 -0
- package/dist/twins/packs/linkedin/LICENSE +202 -0
- package/dist/twins/packs/linkedin/NOTICE +7 -0
- package/dist/twins/packs/linkedin/index.mjs +78 -0
- package/dist/twins/packs/livekit/LICENSE +202 -0
- package/dist/twins/packs/livekit/NOTICE +7 -0
- package/dist/twins/packs/livekit/index.mjs +2 -0
- package/dist/twins/packs/mailgun/LICENSE +202 -0
- package/dist/twins/packs/mailgun/NOTICE +7 -0
- package/dist/twins/packs/mailgun/index.mjs +13 -0
- package/dist/twins/packs/mapbox/LICENSE +202 -0
- package/dist/twins/packs/mapbox/NOTICE +7 -0
- package/dist/twins/packs/mapbox/index.mjs +2 -0
- package/dist/twins/packs/merge/LICENSE +202 -0
- package/dist/twins/packs/merge/NOTICE +7 -0
- package/dist/twins/packs/merge/index.mjs +4 -0
- package/dist/twins/packs/mistral/LICENSE +202 -0
- package/dist/twins/packs/mistral/NOTICE +7 -0
- package/dist/twins/packs/mistral/index.mjs +6 -0
- package/dist/twins/packs/mixpanel/LICENSE +202 -0
- package/dist/twins/packs/mixpanel/NOTICE +8 -0
- package/dist/twins/packs/mixpanel/index.mjs +2 -0
- package/dist/twins/packs/mongodb/LICENSE +202 -0
- package/dist/twins/packs/mongodb/NOTICE +7 -0
- package/dist/twins/packs/mongodb/index.mjs +8 -0
- package/dist/twins/packs/moonshot/LICENSE +202 -0
- package/dist/twins/packs/moonshot/NOTICE +7 -0
- package/dist/twins/packs/moonshot/index.mjs +18 -0
- package/dist/twins/packs/notion/LICENSE +202 -0
- package/dist/twins/packs/notion/NOTICE +7 -0
- package/dist/twins/packs/notion/index.mjs +2 -0
- package/dist/twins/packs/npm-registry/LICENSE +202 -0
- package/dist/twins/packs/npm-registry/NOTICE +7 -0
- package/dist/twins/packs/npm-registry/index.mjs +2 -0
- package/dist/twins/packs/oa-treasury/LICENSE +202 -0
- package/dist/twins/packs/oa-treasury/NOTICE +8 -0
- package/dist/twins/packs/oa-treasury/index.mjs +16 -0
- package/dist/twins/packs/openai/LICENSE +202 -0
- package/dist/twins/packs/openai/NOTICE +7 -0
- package/dist/twins/packs/openai/index.mjs +3473 -0
- package/dist/twins/packs/openrouter/LICENSE +202 -0
- package/dist/twins/packs/openrouter/NOTICE +7 -0
- package/dist/twins/packs/openrouter/index.mjs +2 -0
- package/dist/twins/packs/openweather/LICENSE +202 -0
- package/dist/twins/packs/openweather/NOTICE +7 -0
- package/dist/twins/packs/openweather/index.mjs +2 -0
- package/dist/twins/packs/paypal/LICENSE +202 -0
- package/dist/twins/packs/paypal/NOTICE +7 -0
- package/dist/twins/packs/paypal/index.mjs +51 -0
- package/dist/twins/packs/pinecone/LICENSE +202 -0
- package/dist/twins/packs/pinecone/NOTICE +7 -0
- package/dist/twins/packs/pinecone/index.mjs +2 -0
- package/dist/twins/packs/plain/LICENSE +202 -0
- package/dist/twins/packs/plain/NOTICE +8 -0
- package/dist/twins/packs/plain/index.mjs +18426 -0
- package/dist/twins/packs/planetscale/LICENSE +202 -0
- package/dist/twins/packs/planetscale/NOTICE +7 -0
- package/dist/twins/packs/planetscale/index.mjs +18 -0
- package/dist/twins/packs/polar/LICENSE +202 -0
- package/dist/twins/packs/polar/NOTICE +7 -0
- package/dist/twins/packs/polar/index.mjs +2 -0
- package/dist/twins/packs/polyhaven/LICENSE +202 -0
- package/dist/twins/packs/polyhaven/NOTICE +7 -0
- package/dist/twins/packs/polyhaven/index.mjs +3 -0
- package/dist/twins/packs/postmark/LICENSE +202 -0
- package/dist/twins/packs/postmark/NOTICE +7 -0
- package/dist/twins/packs/postmark/index.mjs +12 -0
- package/dist/twins/packs/reddit/LICENSE +202 -0
- package/dist/twins/packs/reddit/NOTICE +7 -0
- package/dist/twins/packs/reddit/index.mjs +324 -0
- package/dist/twins/packs/redis/LICENSE +202 -0
- package/dist/twins/packs/redis/NOTICE +7 -0
- package/dist/twins/packs/redis/index.mjs +2 -0
- package/dist/twins/packs/replicate/LICENSE +202 -0
- package/dist/twins/packs/replicate/NOTICE +7 -0
- package/dist/twins/packs/replicate/index.mjs +2 -0
- package/dist/twins/packs/resend/LICENSE +202 -0
- package/dist/twins/packs/resend/NOTICE +7 -0
- package/dist/twins/packs/resend/index.mjs +139 -0
- package/dist/twins/packs/runhuman/LICENSE +202 -0
- package/dist/twins/packs/runhuman/NOTICE +7 -0
- package/dist/twins/packs/runhuman/index.mjs +3 -0
- package/dist/twins/packs/scrapecreators/LICENSE +202 -0
- package/dist/twins/packs/scrapecreators/NOTICE +7 -0
- package/dist/twins/packs/scrapecreators/index.mjs +2 -0
- package/dist/twins/packs/segment/LICENSE +202 -0
- package/dist/twins/packs/segment/NOTICE +8 -0
- package/dist/twins/packs/segment/index.mjs +2 -0
- package/dist/twins/packs/sendblue/LICENSE +202 -0
- package/dist/twins/packs/sendblue/NOTICE +7 -0
- package/dist/twins/packs/sendblue/index.mjs +2 -0
- package/dist/twins/packs/sendgrid/LICENSE +202 -0
- package/dist/twins/packs/sendgrid/NOTICE +8 -0
- package/dist/twins/packs/sendgrid/index.mjs +4 -0
- package/dist/twins/packs/sentry/LICENSE +202 -0
- package/dist/twins/packs/sentry/NOTICE +7 -0
- package/dist/twins/packs/sentry/index.mjs +5 -0
- package/dist/twins/packs/sigstore/LICENSE +202 -0
- package/dist/twins/packs/sigstore/NOTICE +7 -0
- package/dist/twins/packs/sigstore/index.mjs +12 -0
- package/dist/twins/packs/slack/LICENSE +202 -0
- package/dist/twins/packs/slack/NOTICE +7 -0
- package/dist/twins/packs/slack/index.mjs +66 -0
- package/dist/twins/packs/smtp/LICENSE +202 -0
- package/dist/twins/packs/smtp/NOTICE +7 -0
- package/dist/twins/packs/smtp/index.mjs +3 -0
- package/dist/twins/packs/snowflake/LICENSE +202 -0
- package/dist/twins/packs/snowflake/NOTICE +8 -0
- package/dist/twins/packs/snowflake/index.mjs +30 -0
- package/dist/twins/packs/stigg/LICENSE +202 -0
- package/dist/twins/packs/stigg/NOTICE +8 -0
- package/dist/twins/packs/stigg/index.mjs +22194 -0
- package/dist/twins/packs/stream/LICENSE +202 -0
- package/dist/twins/packs/stream/NOTICE +7 -0
- package/dist/twins/packs/stream/index.mjs +2 -0
- package/dist/twins/packs/stripe/LICENSE +202 -0
- package/dist/twins/packs/stripe/NOTICE +7 -0
- package/dist/twins/packs/stripe/index.mjs +211 -0
- package/dist/twins/packs/supabase/LICENSE +202 -0
- package/dist/twins/packs/supabase/NOTICE +7 -0
- package/dist/twins/packs/supabase/index.mjs +2 -0
- package/dist/twins/packs/supermemory/LICENSE +202 -0
- package/dist/twins/packs/supermemory/NOTICE +7 -0
- package/dist/twins/packs/supermemory/index.mjs +2 -0
- package/dist/twins/packs/svix/LICENSE +202 -0
- package/dist/twins/packs/svix/NOTICE +7 -0
- package/dist/twins/packs/svix/index.mjs +2 -0
- package/dist/twins/packs/tavily/LICENSE +202 -0
- package/dist/twins/packs/tavily/NOTICE +7 -0
- package/dist/twins/packs/tavily/index.mjs +2 -0
- package/dist/twins/packs/telegram/LICENSE +202 -0
- package/dist/twins/packs/telegram/NOTICE +7 -0
- package/dist/twins/packs/telegram/index.mjs +11 -0
- package/dist/twins/packs/temporal/LICENSE +202 -0
- package/dist/twins/packs/temporal/NOTICE +7 -0
- package/dist/twins/packs/temporal/index.mjs +44 -0
- package/dist/twins/packs/tiktok/LICENSE +202 -0
- package/dist/twins/packs/tiktok/NOTICE +7 -0
- package/dist/twins/packs/tiktok/index.mjs +2 -0
- package/dist/twins/packs/tinybird/LICENSE +202 -0
- package/dist/twins/packs/tinybird/NOTICE +7 -0
- package/dist/twins/packs/tinybird/index.mjs +50 -0
- package/dist/twins/packs/togetherai/LICENSE +202 -0
- package/dist/twins/packs/togetherai/NOTICE +7 -0
- package/dist/twins/packs/togetherai/index.mjs +11 -0
- package/dist/twins/packs/tremendous/LICENSE +202 -0
- package/dist/twins/packs/tremendous/NOTICE +7 -0
- package/dist/twins/packs/tremendous/index.mjs +2 -0
- package/dist/twins/packs/tripo/LICENSE +202 -0
- package/dist/twins/packs/tripo/NOTICE +7 -0
- package/dist/twins/packs/tripo/index.mjs +9 -0
- package/dist/twins/packs/tunnel/LICENSE +202 -0
- package/dist/twins/packs/tunnel/NOTICE +7 -0
- package/dist/twins/packs/tunnel/index.mjs +2 -0
- package/dist/twins/packs/twelvelabs/LICENSE +202 -0
- package/dist/twins/packs/twelvelabs/NOTICE +7 -0
- package/dist/twins/packs/twelvelabs/index.mjs +5 -0
- package/dist/twins/packs/twilio/LICENSE +202 -0
- package/dist/twins/packs/twilio/NOTICE +7 -0
- package/dist/twins/packs/twilio/index.mjs +2 -0
- package/dist/twins/packs/twitch/LICENSE +202 -0
- package/dist/twins/packs/twitch/NOTICE +7 -0
- package/dist/twins/packs/twitch/index.mjs +68 -0
- package/dist/twins/packs/upstash/LICENSE +202 -0
- package/dist/twins/packs/upstash/NOTICE +7 -0
- package/dist/twins/packs/upstash/index.mjs +14 -0
- package/dist/twins/packs/upstashvector/LICENSE +202 -0
- package/dist/twins/packs/upstashvector/NOTICE +7 -0
- package/dist/twins/packs/upstashvector/index.mjs +3 -0
- package/dist/twins/packs/vercel/LICENSE +202 -0
- package/dist/twins/packs/vercel/NOTICE +7 -0
- package/dist/twins/packs/vercel/index.mjs +10 -0
- package/dist/twins/packs/veriff/LICENSE +202 -0
- package/dist/twins/packs/veriff/NOTICE +7 -0
- package/dist/twins/packs/veriff/index.mjs +2 -0
- package/dist/twins/packs/vgauth/LICENSE +202 -0
- package/dist/twins/packs/vgauth/NOTICE +7 -0
- package/dist/twins/packs/vgauth/index.mjs +2 -0
- package/dist/twins/packs/vital/LICENSE +202 -0
- package/dist/twins/packs/vital/NOTICE +7 -0
- package/dist/twins/packs/vital/index.mjs +2 -0
- package/dist/twins/packs/volteridentity/LICENSE +202 -0
- package/dist/twins/packs/volteridentity/NOTICE +7 -0
- package/dist/twins/packs/volteridentity/index.mjs +2 -0
- package/dist/twins/packs/webrisk/LICENSE +202 -0
- package/dist/twins/packs/webrisk/NOTICE +7 -0
- package/dist/twins/packs/webrisk/index.mjs +2 -0
- package/dist/twins/packs/worldlabs/LICENSE +202 -0
- package/dist/twins/packs/worldlabs/NOTICE +7 -0
- package/dist/twins/packs/worldlabs/index.mjs +2 -0
- package/dist/twins/packs/x/LICENSE +202 -0
- package/dist/twins/packs/x/NOTICE +7 -0
- package/dist/twins/packs/x/index.mjs +63 -0
- package/dist/twins/packs/xai/LICENSE +202 -0
- package/dist/twins/packs/xai/NOTICE +7 -0
- package/dist/twins/packs/xai/index.mjs +4 -0
- package/dist/twins/packs/xidentity/LICENSE +202 -0
- package/dist/twins/packs/xidentity/NOTICE +8 -0
- package/dist/twins/packs/xidentity/index.mjs +209 -0
- package/dist/twins/packs/youtube/LICENSE +202 -0
- package/dist/twins/packs/youtube/NOTICE +7 -0
- package/dist/twins/packs/youtube/index.mjs +5 -0
- package/dist/worker.js +442 -18
- package/dist/world-host.js +928 -91
- package/package.json +5 -4
- package/dist/dashboard/assets/dashboard/bay-morning.png +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-afternoon.png +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-portrait.png +0 -0
- package/dist/dashboard/assets/dashboard/moonlit-coast.png +0 -0
- package/dist/dashboard/assets/next/static/chunks/2868-424d32cfc8ae81c9.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-f9fca2c08f779fa0.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-bc480c9258e5cc4d.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-f04c0b236abaead3.js +0 -1
- package/dist/dashboard/assets/next/static/css/4af3c8ca0da0f48b.css +0 -1
- package/dist/dashboard/assets/next/static/css/6b8edde77e493a51.css +0 -1
- package/dist/dashboard/assets/next/static/media/bay-morning.1a9f358c.png +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-afternoon.3e7cea58.png +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-portrait.7941528f.png +0 -0
- package/dist/dashboard/assets/next/static/media/moonlit-coast.bbe901a1.png +0 -0
- /package/dist/dashboard/assets/next/static/{5ub3D2yzS8DE7w2qZd1nv → 8f121VqXS9LLPMmYd1SRn}/_buildManifest.js +0 -0
- /package/dist/dashboard/assets/next/static/{5ub3D2yzS8DE7w2qZd1nv → 8f121VqXS9LLPMmYd1SRn}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __atReq}from'node:module';const require=__atReq(import.meta.url);
|
|
2
|
+
import{packOf as A,registerPack as b}from"../../engine/v3/volter_world-core.mjs";var a={vendor:"redis",service:"redis",body:{},deleted:void 0,ids:{template:"{uuid}"},time:"unix-ms",error:{error:"{message}"},readOnly:{status:403,message:"READONLY You can't write against a read only replica."},notFound:{status:400,message:"ERR unknown command"},resources:{},vendorBacked:{none:"A managed loopback Redis owns the World tree; commands are not replayable HTTP resource mutations and no external Redis is deployed or refreshed."},discovery:{twinOf:"Redis Open Source 7.4.0 over RESP2",stores:"database-scoped keys, collection members and cached Lua scripts in the World tree; connection state and pub/sub are ephemeral"},unmodeled:["ACL","ACL CAT","ACL DELUSER","ACL DRYRUN","ACL GENPASS","ACL GETUSER","ACL HELP","ACL LIST","ACL LOAD","ACL LOG","ACL SAVE","ACL SETUSER","ACL USERS","ACL WHOAMI","APPEND","ASKING","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITFIELD_RO","BITOP","BITPOS","BLMOVE","BLMPOP","BLPOP","BRPOP","BRPOPLPUSH","BZMPOP","BZPOPMAX","CLIENT CACHING","CLIENT GETNAME","CLIENT GETREDIR","CLIENT HELP","CLIENT ID","CLIENT INFO","CLIENT KILL","CLIENT NO-EVICT","CLIENT NO-TOUCH","CLIENT PAUSE","CLIENT REPLY","CLIENT TRACKING","CLIENT TRACKINGINFO","CLIENT UNBLOCK","CLIENT UNPAUSE","CLUSTER","CLUSTER ADDSLOTS","CLUSTER ADDSLOTSRANGE","CLUSTER BUMPEPOCH","CLUSTER COUNT-FAILURE-REPORTS","CLUSTER COUNTKEYSINSLOT","CLUSTER DELSLOTS","CLUSTER DELSLOTSRANGE","CLUSTER FAILOVER","CLUSTER FLUSHSLOTS","CLUSTER FORGET","CLUSTER GETKEYSINSLOT","CLUSTER HELP","CLUSTER INFO","CLUSTER KEYSLOT","CLUSTER LINKS","CLUSTER MEET","CLUSTER MYID","CLUSTER MYSHARDID","CLUSTER NODES","CLUSTER REPLICAS","CLUSTER REPLICATE","CLUSTER RESET","CLUSTER SAVECONFIG","CLUSTER SET-CONFIG-EPOCH","CLUSTER SETSLOT","CLUSTER SHARDS","CLUSTER SLAVES","CLUSTER SLOTS","COMMAND","COMMAND COUNT","COMMAND DOCS","COMMAND GETKEYS","COMMAND GETKEYSANDFLAGS","COMMAND HELP","COMMAND INFO","COMMAND LIST","CONFIG","CONFIG GET","CONFIG HELP","CONFIG RESETSTAT","CONFIG REWRITE","CONFIG SET","COPY","DBSIZE","DEBUG","DECR","DISCARD","DUMP","ECHO","EVALSHA_RO","EVAL_RO","EXPIREAT","EXPIRETIME","FAILOVER","FCALL","FCALL_RO","FLUSHALL","FLUSHDB","FUNCTION","FUNCTION DELETE","FUNCTION DUMP","FUNCTION FLUSH","FUNCTION HELP","FUNCTION KILL","FUNCTION LIST","FUNCTION LOAD","FUNCTION RESTORE","FUNCTION STATS","GEOADD","GEODIST","GEOHASH","GEOPOS","GEORADIUS","GEORADIUSBYMEMBER","GEORADIUSBYMEMBER_RO","GEORADIUS_RO","GEOSEARCH","GEOSEARCHSTORE","GETBIT","GETDEL","GETEX","GETRANGE","GETSET","HELLO","HEXPIRE","HEXPIREAT","HEXPIRETIME","HINCRBYFLOAT","HKEYS","HLEN","HPERSIST","HPEXPIRE","HPEXPIREAT","HPEXPIRETIME","HPTTL","HRANDFIELD","HSCAN","HSETNX","HSTRLEN","HTTL","INCRBYFLOAT","KEYS","LASTSAVE","LATENCY","LATENCY DOCTOR","LATENCY GRAPH","LATENCY HELP","LATENCY HISTOGRAM","LATENCY HISTORY","LATENCY LATEST","LATENCY RESET","LCS","LINSERT","LMOVE","LMPOP","LOLWUT","LPOP","LPUSHX","LSET","MEMORY","MEMORY DOCTOR","MEMORY HELP","MEMORY MALLOC-STATS","MEMORY PURGE","MEMORY STATS","MEMORY USAGE","MIGRATE","MODULE","MODULE HELP","MODULE LIST","MODULE LOAD","MODULE LOADEX","MODULE UNLOAD","MONITOR","MOVE","MSET","MSETNX","OBJECT","OBJECT ENCODING","OBJECT FREQ","OBJECT HELP","OBJECT IDLETIME","OBJECT REFCOUNT","PEXPIREAT","PEXPIRETIME","PFADD","PFCOUNT","PFDEBUG","PFMERGE","PFSELFTEST","PSETEX","PSUBSCRIBE","PSYNC","PUBSUB","PUBSUB CHANNELS","PUBSUB HELP","PUBSUB NUMPAT","PUBSUB NUMSUB","PUBSUB SHARDCHANNELS","PUBSUB SHARDNUMSUB","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","REPLCONF","REPLICAOF","RESET","RESTORE","RESTORE-ASKING","ROLE","RPUSHX","SAVE","SCRIPT","SCRIPT DEBUG","SCRIPT EXISTS","SCRIPT FLUSH","SCRIPT HELP","SCRIPT KILL","SCRIPT LOAD","SDIFF","SDIFFSTORE","SENTINEL","SENTINEL CKQUORUM","SENTINEL CONFIG","SENTINEL DEBUG","SENTINEL FAILOVER","SENTINEL FLUSHCONFIG","SENTINEL GET-MASTER-ADDR-BY-NAME","SENTINEL HELP","SENTINEL INFO-CACHE","SENTINEL IS-MASTER-DOWN-BY-ADDR","SENTINEL MASTER","SENTINEL MASTERS","SENTINEL MONITOR","SENTINEL MYID","SENTINEL PENDING-SCRIPTS","SENTINEL REMOVE","SENTINEL REPLICAS","SENTINEL RESET","SENTINEL SENTINELS","SENTINEL SET","SENTINEL SIMULATE-FAILURE","SENTINEL SLAVES","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERCARD","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SLOWLOG GET","SLOWLOG HELP","SLOWLOG LEN","SLOWLOG RESET","SMISMEMBER","SMOVE","SORT","SORT_RO","SPOP","SPUBLISH","SRANDMEMBER","SSCAN","SSUBSCRIBE","STRLEN","SUBSTR","SUNION","SUNIONSTORE","SUNSUBSCRIBE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNLINK","UNWATCH","WAIT","WAITAOF","WATCH","XACK","XAUTOCLAIM","XCLAIM","XDEL","XGROUP","XGROUP CREATE","XGROUP CREATECONSUMER","XGROUP DELCONSUMER","XGROUP DESTROY","XGROUP HELP","XGROUP SETID","XINFO","XINFO CONSUMERS","XINFO GROUPS","XINFO HELP","XINFO STREAM","XLEN","XPENDING","XRANGE","XREAD","XREADGROUP","XREVRANGE","XSETID","ZCOUNT","ZDIFF","ZDIFFSTORE","ZINCRBY","ZINTER","ZINTERCARD","ZINTERSTORE","ZLEXCOUNT","ZMPOP","ZMSCORE","ZPOPMAX","ZRANDMEMBER","ZRANGEBYLEX","ZRANGESTORE","ZRANK","ZREMRANGEBYLEX","ZREVRANGEBYLEX","ZREVRANK","ZSCAN","ZUNION","ZUNIONSTORE"],descriptor:{protocol:"3",transport:"raw-tcp",archetype:"crud",bin:"world-redis",resources:["key","member","script"],specSource:"Redis 7.4.0 src/commands, upstream commit and SHA-256 in spec/SOURCE.md",description:"Stock Redis command protocol for Twenty queues, cache, sessions and subscriptions, and Postiz upload and login state.",managedService:{kind:"redis",scheme:"redis",note:"stock Redis over RESP2 with state in the World tree"},adoption:{sdks:["ioredis","redis","bullmq"],envStems:["REDIS"]},hosts:[],endpointEnvNone:"Managed infrastructure injects REDIS_URL from the declared redis service; it is a TCP endpoint, with no HTTP API host."}};var i={generatedBy:"scripts/derive-pack.ts",spec:"commands",format:"command-table",version:"7.4.0",commands:[{id:"ACL",group:"server",since:"6.0.0",arity:-2,summary:"A container for Access List Control commands.",flags:["SENTINEL"],arguments:[]},{id:"ACL CAT",group:"server",since:"6.0.0",arity:-2,summary:"Lists the ACL categories, or the commands inside a category.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"category",type:"string",optional:!0}],reply:{anyOf:[{type:"array",description:"In case `category` was not given, a list of existing ACL categories",items:{type:"string"}},{type:"array",description:"In case `category` was given, list of commands that fall under the provided ACL category",items:{type:"string"}}]}},{id:"ACL DELUSER",group:"server",since:"6.0.0",arity:-3,summary:"Deletes ACL users, and terminates their connections.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"username",type:"string",multiple:!0}],reply:{type:"integer",description:"The number of users that were deleted"}},{id:"ACL DRYRUN",group:"server",since:"7.0.0",arity:-4,summary:"Simulates the execution of a command by a user, without executing the command.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"username",type:"string"},{name:"command",type:"string"},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{anyOf:[{const:"OK",description:"The given user may successfully execute the given command."},{type:"string",description:"The description of the problem, in case the user is not allowed to run the given command."}]}},{id:"ACL GENPASS",group:"server",since:"6.0.0",arity:-2,summary:"Generates a pseudorandom, secure password that can be used to identify ACL users.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"bits",type:"integer",optional:!0}],reply:{type:"string",description:"Pseudorandom data. By default it contains 64 bytes, representing 256 bits of data. If `bits` was given, the output string length is the number of specified bits (rounded to the next multiple of 4) divided by 4."}},{id:"ACL GETUSER",group:"server",since:"6.0.0",arity:3,summary:"Lists the ACL rules of a user.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"username",type:"string"}],reply:{oneOf:[{description:"a set of ACL rule definitions for the user",type:"object",additionalProperties:!1,properties:{flags:{type:"array",items:{type:"string"}},passwords:{type:"array",items:{type:"string"}},commands:{description:"root selector's commands",type:"string"},keys:{description:"root selector's keys",type:"string"},channels:{description:"root selector's channels",type:"string"},selectors:{type:"array",items:{type:"object",additionalProperties:!1,properties:{commands:{type:"string"},keys:{type:"string"},channels:{type:"string"}}}}}},{description:"If user does not exist",type:"null"}]}},{id:"ACL HELP",group:"server",since:"6.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE","SENTINEL"],arguments:[],reply:{type:"array",description:"A list of subcommands and their description",items:{type:"string"}}},{id:"ACL LIST",group:"server",since:"6.0.0",arity:2,summary:"Dumps the effective rules in ACL file format.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{type:"array",description:"A list of currently active ACL rules",items:{type:"string"}}},{id:"ACL LOAD",group:"server",since:"6.0.0",arity:2,summary:"Reloads the rules from the configured ACL file.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{const:"OK"}},{id:"ACL LOG",group:"server",since:"6.0.0",arity:-2,summary:"Lists recent security events generated due to ACL rules.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"operation",type:"oneof",optional:!0,arguments:[{name:"count",type:"integer"},{name:"reset",type:"pure-token",token:"RESET"}]}],reply:{oneOf:[{description:"In case `RESET` was not given, a list of recent ACL security events.",type:"array",items:{type:"object",additionalProperties:!1,properties:{count:{type:"integer"},reason:{type:"string"},context:{type:"string"},object:{type:"string"},username:{type:"string"},"age-seconds":{type:"number"},"client-info":{type:"string"},"entry-id":{type:"integer"},"timestamp-created":{type:"integer"},"timestamp-last-updated":{type:"integer"}}}},{const:"OK",description:"In case `RESET` was given, OK indicates ACL log was cleared."}]}},{id:"ACL SAVE",group:"server",since:"6.0.0",arity:2,summary:"Saves the effective ACL rules in the configured ACL file.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{const:"OK"}},{id:"ACL SETUSER",group:"server",since:"6.0.0",arity:-3,summary:"Creates and modifies an ACL user and its rules.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"username",type:"string"},{name:"rule",type:"string",optional:!0,multiple:!0}],reply:{const:"OK"}},{id:"ACL USERS",group:"server",since:"6.0.0",arity:2,summary:"Lists all ACL users.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{type:"array",description:"List of existing ACL users",items:{type:"string"}}},{id:"ACL WHOAMI",group:"server",since:"6.0.0",arity:2,summary:"Returns the authenticated username of the current connection.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{type:"string",description:"The username of the current connection."}},{id:"APPEND",group:"string",since:"2.0.0",arity:3,summary:"Appends a string to the value of a key. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"value",type:"string"}],reply:{type:"integer",description:"The length of the string after the append operation."}},{id:"ASKING",group:"cluster",since:"3.0.0",arity:1,summary:"Signals that a cluster client is following an -ASK redirect.",flags:["FAST"],arguments:[],reply:{const:"OK"}},{id:"AUTH",group:"connection",since:"1.0.0",arity:-2,summary:"Authenticates the connection.",flags:["NOSCRIPT","LOADING","STALE","FAST","NO_AUTH","SENTINEL","ALLOW_BUSY"],arguments:[{name:"username",type:"string",optional:!0},{name:"password",type:"string"}],reply:{const:"OK"}},{id:"BGREWRITEAOF",group:"server",since:"1.0.0",arity:1,summary:"Asynchronously rewrites the append-only file to disk.",flags:["NO_ASYNC_LOADING","ADMIN","NOSCRIPT"],arguments:[],reply:{description:"A simple string reply indicating that the rewriting started or is about to start ASAP",type:"string"}},{id:"BGSAVE",group:"server",since:"1.0.0",arity:-1,summary:"Asynchronously saves the database(s) to disk.",flags:["NO_ASYNC_LOADING","ADMIN","NOSCRIPT"],arguments:[{name:"schedule",type:"pure-token",optional:!0,token:"SCHEDULE"}],reply:{oneOf:[{const:"Background saving started"},{const:"Background saving scheduled"}]}},{id:"BITCOUNT",group:"bitmap",since:"2.6.0",arity:-2,summary:"Counts the number of set bits (population counting) in a string.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"range",type:"block",optional:!0,arguments:[{name:"start",type:"integer"},{name:"end",type:"integer"},{name:"unit",type:"oneof",optional:!0,arguments:[{name:"byte",type:"pure-token",token:"BYTE"},{name:"bit",type:"pure-token",token:"BIT"}]}]}],reply:{description:"The number of bits set to 1.",type:"integer",minimum:0}},{id:"BITFIELD",group:"bitmap",since:"3.2.0",arity:-2,summary:"Performs arbitrary bitfield integer operations on strings.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"operation",type:"oneof",optional:!0,multiple:!0,arguments:[{name:"get-block",type:"block",token:"GET",arguments:[{name:"encoding",type:"string"},{name:"offset",type:"integer"}]},{name:"write",type:"block",arguments:[{name:"overflow-block",type:"oneof",optional:!0,token:"OVERFLOW",arguments:[{name:"wrap",type:"pure-token",token:"WRAP"},{name:"sat",type:"pure-token",token:"SAT"},{name:"fail",type:"pure-token",token:"FAIL"}]},{name:"write-operation",type:"oneof",arguments:[{name:"set-block",type:"block",token:"SET",arguments:[{name:"encoding",type:"string"},{name:"offset",type:"integer"},{name:"value",type:"integer"}]},{name:"incrby-block",type:"block",token:"INCRBY",arguments:[{name:"encoding",type:"string"},{name:"offset",type:"integer"},{name:"increment",type:"integer"}]}]}]}]}],reply:{type:"array",items:{oneOf:[{description:"The result of the subcommand at the same position",type:"integer"},{description:"In case OVERFLOW FAIL was given and overflows or underflows detected",type:"null"}]}}},{id:"BITFIELD_RO",group:"bitmap",since:"6.0.0",arity:-2,summary:"Performs arbitrary read-only bitfield integer operations on strings.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"get-block",type:"block",optional:!0,multiple:!0,token:"GET",arguments:[{name:"encoding",type:"string"},{name:"offset",type:"integer"}]}],reply:{type:"array",items:{description:"The result of the subcommand at the same position",type:"integer"}}},{id:"BITOP",group:"bitmap",since:"2.6.0",arity:-4,summary:"Performs bitwise operations on multiple strings, and stores the result.",flags:["WRITE","DENYOOM"],arguments:[{name:"operation",type:"oneof",arguments:[{name:"and",type:"pure-token",token:"AND"},{name:"or",type:"pure-token",token:"OR"},{name:"xor",type:"pure-token",token:"XOR"},{name:"not",type:"pure-token",token:"NOT"}]},{name:"destkey",type:"key"},{name:"key",type:"key",multiple:!0}],reply:{description:"the size of the string stored in the destination key, that is equal to the size of the longest input string",type:"integer",minimum:0}},{id:"BITPOS",group:"bitmap",since:"2.8.7",arity:-3,summary:"Finds the first set (1) or clear (0) bit in a string.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"bit",type:"integer"},{name:"range",type:"block",optional:!0,arguments:[{name:"start",type:"integer"},{name:"end-unit-block",type:"block",optional:!0,arguments:[{name:"end",type:"integer"},{name:"unit",type:"oneof",optional:!0,arguments:[{name:"byte",type:"pure-token",token:"BYTE"},{name:"bit",type:"pure-token",token:"BIT"}]}]}]}],reply:{oneOf:[{description:"the position of the first bit set to 1 or 0 according to the request",type:"integer",minimum:0},{description:"In case the `bit` argument is 1 and the string is empty or composed of just zero bytes",const:-1}]}},{id:"BLMOVE",group:"list",since:"6.2.0",arity:6,summary:"Pops an element from a list, pushes it to another list and returns it. Blocks until an element is available otherwise. Deletes the list if the last element was moved.",flags:["WRITE","DENYOOM","BLOCKING"],arguments:[{name:"source",type:"key"},{name:"destination",type:"key"},{name:"wherefrom",type:"oneof",arguments:[{name:"left",type:"pure-token",token:"LEFT"},{name:"right",type:"pure-token",token:"RIGHT"}]},{name:"whereto",type:"oneof",arguments:[{name:"left",type:"pure-token",token:"LEFT"},{name:"right",type:"pure-token",token:"RIGHT"}]},{name:"timeout",type:"double"}],reply:{oneOf:[{description:"The popped element.",type:"string"},{description:"Operation timed-out",type:"null"}]}},{id:"BLMPOP",group:"list",since:"7.0.0",arity:-5,summary:"Pops the first element from one of multiple lists. Blocks until an element is available otherwise. Deletes the list if the last element was popped.",flags:["WRITE","BLOCKING"],arguments:[{name:"timeout",type:"double"},{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"where",type:"oneof",arguments:[{name:"left",type:"pure-token",token:"LEFT"},{name:"right",type:"pure-token",token:"RIGHT"}]},{name:"count",type:"integer",optional:!0,token:"COUNT"}],reply:{oneOf:[{description:"Operation timed-out",type:"null"},{description:"The key from which elements were popped and the popped elements",type:"array",minItems:2,maxItems:2,items:[{description:"List key from which elements were popped.",type:"string"},{description:"Array of popped elements.",type:"array",minItems:1,items:{type:"string"}}]}]}},{id:"BLPOP",group:"list",since:"2.0.0",arity:-3,summary:"Removes and returns the first element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.",flags:["WRITE","BLOCKING"],arguments:[{name:"key",type:"key",multiple:!0},{name:"timeout",type:"double"}],reply:{oneOf:[{type:"null",description:"No element could be popped and timeout expired"},{description:"The key from which the element was popped and the value of the popped element",type:"array",minItems:2,maxItems:2,items:[{description:"List key from which the element was popped.",type:"string"},{description:"Value of the popped element.",type:"string"}]}]}},{id:"BRPOP",group:"list",since:"2.0.0",arity:-3,summary:"Removes and returns the last element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.",flags:["WRITE","BLOCKING"],arguments:[{name:"key",type:"key",multiple:!0},{name:"timeout",type:"double"}],reply:{oneOf:[{description:"No element could be popped and the timeout expired.",type:"null"},{type:"array",minItems:2,maxItems:2,items:[{description:"The name of the key where an element was popped ",type:"string"},{description:"The value of the popped element",type:"string"}]}]}},{id:"BRPOPLPUSH",group:"list",since:"2.2.0",arity:4,summary:"Pops an element from a list, pushes it to another list and returns it. Block until an element is available otherwise. Deletes the list if the last element was popped.",flags:["WRITE","DENYOOM","BLOCKING"],arguments:[{name:"source",type:"key"},{name:"destination",type:"key"},{name:"timeout",type:"double"}],reply:{oneOf:[{type:"string",description:"The element being popped from source and pushed to destination."},{type:"null",description:"Timeout is reached."}]}},{id:"BZMPOP",group:"sorted_set",since:"7.0.0",arity:-5,summary:"Removes and returns a member by score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.",flags:["WRITE","BLOCKING"],arguments:[{name:"timeout",type:"double"},{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"where",type:"oneof",arguments:[{name:"min",type:"pure-token",token:"MIN"},{name:"max",type:"pure-token",token:"MAX"}]},{name:"count",type:"integer",optional:!0,token:"COUNT"}],reply:{oneOf:[{description:"Timeout reached and no elements were popped.",type:"null"},{description:"The keyname and the popped members.",type:"array",minItems:2,maxItems:2,items:[{description:"Keyname",type:"string"},{description:"Popped members and their scores.",type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{description:"Member",type:"string"},{description:"Score",type:"number"}]}}]}]}},{id:"BZPOPMAX",group:"sorted_set",since:"5.0.0",arity:-3,summary:"Removes and returns the member with the highest score from one or more sorted sets. Blocks until a member available otherwise. Deletes the sorted set if the last element was popped.",flags:["WRITE","FAST","BLOCKING"],arguments:[{name:"key",type:"key",multiple:!0},{name:"timeout",type:"double"}],reply:{oneOf:[{description:"Timeout reached and no elements were popped.",type:"null"},{description:"The keyname, popped member, and its score.",type:"array",minItems:3,maxItems:3,items:[{description:"Keyname",type:"string"},{description:"Member",type:"string"},{description:"Score",type:"number"}]}]}},{id:"BZPOPMIN",group:"sorted_set",since:"5.0.0",arity:-3,summary:"Removes and returns the member with the lowest score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.",flags:["WRITE","FAST","BLOCKING"],arguments:[{name:"key",type:"key",multiple:!0},{name:"timeout",type:"double"}],reply:{oneOf:[{description:"Timeout reached and no elements were popped.",type:"null"},{description:"The keyname, popped member, and its score.",type:"array",minItems:3,maxItems:3,items:[{description:"Keyname",type:"string"},{description:"Member",type:"string"},{description:"Score",type:"number"}]}]}},{id:"CLIENT",group:"connection",since:"2.4.0",arity:-2,summary:"A container for client connection commands.",flags:["SENTINEL"],arguments:[]},{id:"CLIENT CACHING",group:"connection",since:"6.0.0",arity:3,summary:"Instructs the server whether to track the keys in the next request.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"mode",type:"oneof",arguments:[{name:"yes",type:"pure-token",token:"YES"},{name:"no",type:"pure-token",token:"NO"}]}],reply:{const:"OK"}},{id:"CLIENT GETNAME",group:"connection",since:"2.6.9",arity:2,summary:"Returns the name of the connection.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{oneOf:[{type:"string",description:"The connection name of the current connection"},{type:"null",description:"Connection name was not set"}]}},{id:"CLIENT GETREDIR",group:"connection",since:"6.0.0",arity:2,summary:"Returns the client ID to which the connection's tracking notifications are redirected.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{oneOf:[{const:0,description:"Not redirecting notifications to any client."},{const:-1,description:"Client tracking is not enabled."},{type:"integer",description:"ID of the client we are redirecting the notifications to.",minimum:1}]}},{id:"CLIENT HELP",group:"connection",since:"5.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE","SENTINEL"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"CLIENT ID",group:"connection",since:"5.0.0",arity:2,summary:"Returns the unique client ID of the connection.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{type:"integer",description:"The id of the client"}},{id:"CLIENT INFO",group:"connection",since:"6.2.0",arity:2,summary:"Returns information about the connection.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{description:"a unique string, as described at the CLIENT LIST page, for the current client",type:"string"}},{id:"CLIENT KILL",group:"connection",since:"2.4.0",arity:-3,summary:"Terminates open connections.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"filter",type:"oneof",arguments:[{name:"old-format",type:"string"},{name:"new-format",type:"oneof",multiple:!0,arguments:[{name:"client-id",type:"integer",optional:!0,token:"ID"},{name:"client-type",type:"oneof",optional:!0,token:"TYPE",arguments:[{name:"normal",type:"pure-token",token:"normal"},{name:"master",type:"pure-token",token:"master"},{name:"slave",type:"pure-token",token:"slave"},{name:"replica",type:"pure-token",token:"replica"},{name:"pubsub",type:"pure-token",token:"pubsub"}]},{name:"username",type:"string",optional:!0,token:"USER"},{name:"addr",type:"string",optional:!0,token:"ADDR"},{name:"laddr",type:"string",optional:!0,token:"LADDR"},{name:"skipme",type:"oneof",optional:!0,token:"SKIPME",arguments:[{name:"yes",type:"pure-token",token:"YES"},{name:"no",type:"pure-token",token:"NO"}]},{name:"maxage",type:"integer",optional:!0,token:"MAXAGE"}]}]}],reply:{oneOf:[{description:"when called in 3 argument format",const:"OK"},{description:"when called in filter/value format, the number of clients killed",type:"integer",minimum:0}]}},{id:"CLIENT LIST",group:"connection",since:"2.4.0",arity:-2,summary:"Lists open connections.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"client-type",type:"oneof",optional:!0,token:"TYPE",arguments:[{name:"normal",type:"pure-token",token:"normal"},{name:"master",type:"pure-token",token:"master"},{name:"replica",type:"pure-token",token:"replica"},{name:"pubsub",type:"pure-token",token:"pubsub"}]},{name:"client-id",type:"integer",optional:!0,multiple:!0,token:"ID"}],reply:{type:"string",description:"Information and statistics about client connections"}},{id:"CLIENT NO-EVICT",group:"connection",since:"7.0.0",arity:3,summary:"Sets the client eviction mode of the connection.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"enabled",type:"oneof",arguments:[{name:"on",type:"pure-token",token:"ON"},{name:"off",type:"pure-token",token:"OFF"}]}],reply:{const:"OK"}},{id:"CLIENT NO-TOUCH",group:"connection",since:"7.2.0",arity:3,summary:"Controls whether commands sent by the client affect the LRU/LFU of accessed keys.",flags:["NOSCRIPT","LOADING","STALE"],arguments:[{name:"enabled",type:"oneof",arguments:[{name:"on",type:"pure-token",token:"ON"},{name:"off",type:"pure-token",token:"OFF"}]}],reply:{const:"OK"}},{id:"CLIENT PAUSE",group:"connection",since:"3.0.0",arity:-3,summary:"Suspends commands processing.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"timeout",type:"integer"},{name:"mode",type:"oneof",optional:!0,arguments:[{name:"write",type:"pure-token",token:"WRITE"},{name:"all",type:"pure-token",token:"ALL"}]}],reply:{const:"OK"}},{id:"CLIENT REPLY",group:"connection",since:"3.2.0",arity:3,summary:"Instructs the server whether to reply to commands.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"action",type:"oneof",arguments:[{name:"on",type:"pure-token",token:"ON"},{name:"off",type:"pure-token",token:"OFF"},{name:"skip",type:"pure-token",token:"SKIP"}]}],reply:{const:"OK",description:"When called with either OFF or SKIP subcommands, no reply is made. When called with ON, reply is OK."}},{id:"CLIENT SETINFO",group:"connection",since:"7.2.0",arity:4,summary:"Sets information specific to the client or connection.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"attr",type:"oneof",arguments:[{name:"libname",type:"string",token:"lib-name"},{name:"libver",type:"string",token:"lib-ver"}]}],reply:{const:"OK"}},{id:"CLIENT SETNAME",group:"connection",since:"2.6.9",arity:3,summary:"Sets the connection name.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"connection-name",type:"string"}],reply:{const:"OK"}},{id:"CLIENT TRACKING",group:"connection",since:"6.0.0",arity:-3,summary:"Controls server-assisted client-side caching for the connection.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"status",type:"oneof",arguments:[{name:"on",type:"pure-token",token:"ON"},{name:"off",type:"pure-token",token:"OFF"}]},{name:"client-id",type:"integer",optional:!0,token:"REDIRECT"},{name:"prefix",type:"string",optional:!0,multiple:!0,token:"PREFIX"},{name:"BCAST",type:"pure-token",optional:!0,token:"BCAST"},{name:"OPTIN",type:"pure-token",optional:!0,token:"OPTIN"},{name:"OPTOUT",type:"pure-token",optional:!0,token:"OPTOUT"},{name:"NOLOOP",type:"pure-token",optional:!0,token:"NOLOOP"}],reply:{description:"if the client was successfully put into or taken out of tracking mode",const:"OK"}},{id:"CLIENT TRACKINGINFO",group:"connection",since:"6.2.0",arity:2,summary:"Returns information about server-assisted client-side caching for the connection.",flags:["NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{type:"object",additionalProperties:!1,properties:{flags:{type:"array",items:{oneOf:[{const:"off",description:"The connection isn't using server assisted client side caching."},{const:"on",description:"Server assisted client side caching is enabled for the connection."},{const:"bcast",description:"The client uses broadcasting mode."},{const:"optin",description:"The client does not cache keys by default."},{const:"optout",description:"The client caches keys by default."},{const:"caching-yes",description:"The next command will cache keys (exists only together with optin)."},{const:"caching-no",description:"The next command won't cache keys (exists only together with optout)."},{const:"noloop",description:"The client isn't notified about keys modified by itself."},{const:"broken_redirect",description:"The client ID used for redirection isn't valid anymore."}]}},redirect:{type:"integer",description:"The client ID used for notifications redirection, or -1 when none."},prefixes:{type:"array",description:"List of key prefixes for which notifications are sent to the client.",items:{type:"string"}}}}},{id:"CLIENT UNBLOCK",group:"connection",since:"5.0.0",arity:-3,summary:"Unblocks a client blocked by a blocking command from a different connection.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"client-id",type:"integer"},{name:"unblock-type",type:"oneof",optional:!0,arguments:[{name:"timeout",type:"pure-token",token:"TIMEOUT"},{name:"error",type:"pure-token",token:"ERROR"}]}],reply:{oneOf:[{const:0,description:"if the client was unblocked successfully"},{const:1,description:"if the client wasn't unblocked"}]}},{id:"CLIENT UNPAUSE",group:"connection",since:"6.2.0",arity:2,summary:"Resumes processing commands from paused clients.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[],reply:{const:"OK"}},{id:"CLUSTER",group:"cluster",since:"3.0.0",arity:-2,summary:"A container for Redis Cluster commands.",flags:[],arguments:[]},{id:"CLUSTER ADDSLOTS",group:"cluster",since:"3.0.0",arity:-3,summary:"Assigns new hash slots to a node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"slot",type:"integer",multiple:!0}],reply:{const:"OK"}},{id:"CLUSTER ADDSLOTSRANGE",group:"cluster",since:"7.0.0",arity:-4,summary:"Assigns new hash slot ranges to a node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"range",type:"block",multiple:!0,arguments:[{name:"start-slot",type:"integer"},{name:"end-slot",type:"integer"}]}],reply:{const:"OK"}},{id:"CLUSTER BUMPEPOCH",group:"cluster",since:"3.0.0",arity:2,summary:"Advances the cluster config epoch.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[],reply:{oneOf:[{description:"if the epoch was incremented",type:"string",pattern:"^BUMPED [0-9]*$"},{description:"if the node already has the greatest config epoch in the cluster",type:"string",pattern:"^STILL [0-9]*$"}]}},{id:"CLUSTER COUNT-FAILURE-REPORTS",group:"cluster",since:"3.0.0",arity:3,summary:"Returns the number of active failure reports active for a node.",flags:["ADMIN","STALE"],arguments:[{name:"node-id",type:"string"}],reply:{description:"the number of active failure reports for the node",type:"integer",minimum:0}},{id:"CLUSTER COUNTKEYSINSLOT",group:"cluster",since:"3.0.0",arity:3,summary:"Returns the number of keys in a hash slot.",flags:["STALE"],arguments:[{name:"slot",type:"integer"}],reply:{description:"The number of keys in the specified hash slot",type:"integer",minimum:0}},{id:"CLUSTER DELSLOTS",group:"cluster",since:"3.0.0",arity:-3,summary:"Sets hash slots as unbound for a node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"slot",type:"integer",multiple:!0}],reply:{const:"OK"}},{id:"CLUSTER DELSLOTSRANGE",group:"cluster",since:"7.0.0",arity:-4,summary:"Sets hash slot ranges as unbound for a node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"range",type:"block",multiple:!0,arguments:[{name:"start-slot",type:"integer"},{name:"end-slot",type:"integer"}]}],reply:{const:"OK"}},{id:"CLUSTER FAILOVER",group:"cluster",since:"3.0.0",arity:-2,summary:"Forces a replica to perform a manual failover of its master.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"options",type:"oneof",optional:!0,arguments:[{name:"force",type:"pure-token",token:"FORCE"},{name:"takeover",type:"pure-token",token:"TAKEOVER"}]}],reply:{const:"OK"}},{id:"CLUSTER FLUSHSLOTS",group:"cluster",since:"3.0.0",arity:2,summary:"Deletes all slots information from a node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[],reply:{const:"OK"}},{id:"CLUSTER FORGET",group:"cluster",since:"3.0.0",arity:3,summary:"Removes a node from the nodes table.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"node-id",type:"string"}],reply:{const:"OK"}},{id:"CLUSTER GETKEYSINSLOT",group:"cluster",since:"3.0.0",arity:4,summary:"Returns the key names in a hash slot.",flags:["STALE"],arguments:[{name:"slot",type:"integer"},{name:"count",type:"integer"}],reply:{description:"an array with up to count elements",type:"array",items:{description:"key name",type:"string"}}},{id:"CLUSTER HELP",group:"cluster",since:"5.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"CLUSTER INFO",group:"cluster",since:"3.0.0",arity:2,summary:"Returns information about the state of a node.",flags:["STALE"],arguments:[],reply:{description:"A map between named fields and values in the form of <field>:<value> lines separated by newlines composed by the two bytes CRLF",type:"string"}},{id:"CLUSTER KEYSLOT",group:"cluster",since:"3.0.0",arity:3,summary:"Returns the hash slot for a key.",flags:["STALE"],arguments:[{name:"key",type:"string"}],reply:{description:"The hash slot number for the specified key",type:"integer",minimum:0}},{id:"CLUSTER LINKS",group:"cluster",since:"7.0.0",arity:2,summary:"Returns a list of all TCP links to and from peer nodes.",flags:["STALE"],arguments:[],reply:{description:"an array of cluster links and their attributes",type:"array",items:{type:"object",properties:{direction:{description:"This link is established by the local node _to_ the peer, or accepted by the local node _from_ the peer.",oneOf:[{description:"connection initiated from peer",const:"from"},{description:"connection initiated to peer",const:"to"}]},node:{description:"the node id of the peer",type:"string"},"create-time":{description:"unix time creation time of the link. (In the case of a _to_ link, this is the time when the TCP link is created by the local node, not the time when it is actually established.)",type:"integer"},events:{description:"events currently registered for the link. r means readable event, w means writable event",type:"string"},"send-buffer-allocated":{description:"allocated size of the link's send buffer, which is used to buffer outgoing messages toward the peer",type:"integer"},"send-buffer-used":{description:"size of the portion of the link's send buffer that is currently holding data(messages)",type:"integer"}},additionalProperties:!1}}},{id:"CLUSTER MEET",group:"cluster",since:"3.0.0",arity:-4,summary:"Forces a node to handshake with another node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"ip",type:"string"},{name:"port",type:"integer"},{name:"cluster-bus-port",type:"integer",optional:!0}],reply:{const:"OK"}},{id:"CLUSTER MYID",group:"cluster",since:"3.0.0",arity:2,summary:"Returns the ID of a node.",flags:["STALE"],arguments:[],reply:{description:"the node id",type:"string"}},{id:"CLUSTER MYSHARDID",group:"cluster",since:"7.2.0",arity:2,summary:"Returns the shard ID of a node.",flags:["STALE"],arguments:[],reply:{description:"the node's shard id",type:"string"}},{id:"CLUSTER NODES",group:"cluster",since:"3.0.0",arity:2,summary:"Returns the cluster configuration for a node.",flags:["STALE"],arguments:[],reply:{description:"the serialized cluster configuration",type:"string"}},{id:"CLUSTER REPLICAS",group:"cluster",since:"5.0.0",arity:3,summary:"Lists the replica nodes of a master node.",flags:["ADMIN","STALE"],arguments:[{name:"node-id",type:"string"}],reply:{description:"a list of replica nodes replicating from the specified master node provided in the same format used by CLUSTER NODES",type:"array",items:{type:"string",description:"the serialized cluster configuration"}}},{id:"CLUSTER REPLICATE",group:"cluster",since:"3.0.0",arity:3,summary:"Configure a node as replica of a master node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"node-id",type:"string"}],reply:{const:"OK"}},{id:"CLUSTER RESET",group:"cluster",since:"3.0.0",arity:-2,summary:"Resets a node.",flags:["ADMIN","STALE","NOSCRIPT"],arguments:[{name:"reset-type",type:"oneof",optional:!0,arguments:[{name:"hard",type:"pure-token",token:"HARD"},{name:"soft",type:"pure-token",token:"SOFT"}]}],reply:{const:"OK"}},{id:"CLUSTER SAVECONFIG",group:"cluster",since:"3.0.0",arity:2,summary:"Forces a node to save the cluster configuration to disk.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[],reply:{const:"OK"}},{id:"CLUSTER SET-CONFIG-EPOCH",group:"cluster",since:"3.0.0",arity:3,summary:"Sets the configuration epoch for a new node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"config-epoch",type:"integer"}],reply:{const:"OK"}},{id:"CLUSTER SETSLOT",group:"cluster",since:"3.0.0",arity:-4,summary:"Binds a hash slot to a node.",flags:["NO_ASYNC_LOADING","ADMIN","STALE"],arguments:[{name:"slot",type:"integer"},{name:"subcommand",type:"oneof",arguments:[{name:"importing",type:"string",token:"IMPORTING"},{name:"migrating",type:"string",token:"MIGRATING"},{name:"node",type:"string",token:"NODE"},{name:"stable",type:"pure-token",token:"STABLE"}]}],reply:{const:"OK"}},{id:"CLUSTER SHARDS",group:"cluster",since:"7.0.0",arity:2,summary:"Returns the mapping of cluster slots to shards.",flags:["LOADING","STALE"],arguments:[],reply:{description:"a nested list of a map of hash ranges and shard nodes describing individual shards",type:"array",items:{type:"object",additionalProperties:!1,properties:{slots:{description:"an even number element array specifying the start and end slot numbers for slot ranges owned by this shard",type:"array",items:{type:"integer"}},nodes:{description:"nodes that handle these slot ranges",type:"array",items:{type:"object",additionalProperties:!1,properties:{id:{type:"string"},port:{type:"integer"},"tls-port":{type:"integer"},ip:{type:"string"},endpoint:{type:"string"},hostname:{type:"string"},role:{oneOf:[{const:"master"},{const:"replica"}]},"replication-offset":{type:"integer"},health:{oneOf:[{const:"fail"},{const:"loading"},{const:"online"}]}}}}}}}},{id:"CLUSTER SLAVES",group:"cluster",since:"3.0.0",arity:3,summary:"Lists the replica nodes of a master node.",flags:["ADMIN","STALE"],arguments:[{name:"node-id",type:"string"}],reply:{description:"a list of replica nodes replicating from the specified master node provided in the same format used by CLUSTER NODES",type:"array",items:{type:"string",description:"the serialized cluster configuration"}}},{id:"CLUSTER SLOTS",group:"cluster",since:"3.0.0",arity:2,summary:"Returns the mapping of cluster slots to nodes.",flags:["LOADING","STALE"],arguments:[],reply:{description:"nested list of slot ranges with networking information",type:"array",items:{type:"array",minItems:3,maxItems:4294967295,items:[{description:"start slot number",type:"integer"},{description:"end slot number",type:"integer"},{type:"array",description:"Master node for the slot range",minItems:4,maxItems:4,items:[{description:"endpoint description",oneOf:[{description:"hostname or ip",type:"string"},{description:"unknown type",type:"null"}]},{description:"port",type:"integer"},{description:"node name",type:"string"},{description:"array of node descriptions",type:"object",additionalProperties:!1,properties:{hostname:{type:"string"},ip:{type:"string"}}}]}],additionalItems:{type:"array",description:"Replica node for the slot range",minItems:4,maxItems:4,items:[{description:"endpoint description",oneOf:[{description:"hostname or ip",type:"string"},{description:"unknown type",type:"null"}]},{description:"port",type:"integer"},{description:"node name",type:"string"},{description:"array of node descriptions",type:"object",additionalProperties:!1,properties:{hostname:{type:"string"},ip:{type:"string"}}}]}}}},{id:"COMMAND",group:"server",since:"2.8.13",arity:-1,summary:"Returns detailed information about all commands.",flags:["LOADING","STALE","SENTINEL"],arguments:[]},{id:"COMMAND COUNT",group:"server",since:"2.8.13",arity:2,summary:"Returns a count of commands.",flags:["LOADING","STALE","SENTINEL"],arguments:[],reply:{description:"Number of total commands in this Redis server.",type:"integer"}},{id:"COMMAND DOCS",group:"server",since:"7.0.0",arity:-2,summary:"Returns documentary information about one, multiple or all commands.",flags:["LOADING","STALE","SENTINEL"],arguments:[{name:"command-name",type:"string",optional:!0,multiple:!0}],reply:{description:"A map where each key is a command name, and each value is the documentary information",type:"object",additionalProperties:!1,patternProperties:{"^.*$":{type:"object",additionalProperties:!1,properties:{summary:{description:"short command description",type:"string"},since:{description:"the Redis version that added the command (or for module commands, the module version).",type:"string"},group:{description:"the functional group to which the command belongs",oneOf:[{const:"bitmap"},{const:"cluster"},{const:"connection"},{const:"generic"},{const:"geo"},{const:"hash"},{const:"hyperloglog"},{const:"list"},{const:"module"},{const:"pubsub"},{const:"scripting"},{const:"sentinel"},{const:"server"},{const:"set"},{const:"sorted-set"},{const:"stream"},{const:"string"},{const:"transactions"}]},complexity:{description:"a short explanation about the command's time complexity.",type:"string"},module:{type:"string"},doc_flags:{description:"an array of documentation flags",type:"array",items:{oneOf:[{description:"the command is deprecated.",const:"deprecated"},{description:"a system command that isn't meant to be called by users.",const:"syscmd"}]}},deprecated_since:{description:"the Redis version that deprecated the command (or for module commands, the module version)",type:"string"},replaced_by:{description:"the alternative for a deprecated command.",type:"string"},history:{description:"an array of historical notes describing changes to the command's behavior or arguments.",type:"array",items:{type:"array",minItems:2,maxItems:2,items:[{type:"string",description:"The Redis version that the entry applies to."},{type:"string",description:"The description of the change."}]}},arguments:{description:"an array of maps that describe the command's arguments.",type:"array",items:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},type:{type:"string"},display_text:{type:"string"},key_spec_index:{type:"integer"},token:{type:"string"},summary:{type:"string"},since:{type:"string"},deprecated_since:{type:"string"},flags:{type:"array",items:{type:"string"}},arguments:{type:"array"}}}},reply_schema:{description:"command reply schema",type:"object"},subcommands:{description:"A map where each key is a subcommand, and each value is the documentary information",$ref:"#"}}}}}},{id:"COMMAND GETKEYS",group:"server",since:"2.8.13",arity:-3,summary:"Extracts the key names from an arbitrary command.",flags:["LOADING","STALE","SENTINEL"],arguments:[{name:"command",type:"string"},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{description:"List of keys from the given Redis command.",type:"array",items:{type:"string"},uniqueItems:!0}},{id:"COMMAND GETKEYSANDFLAGS",group:"server",since:"7.0.0",arity:-3,summary:"Extracts the key names and access flags for an arbitrary command.",flags:["LOADING","STALE","SENTINEL"],arguments:[{name:"command",type:"string"},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{description:"List of keys from the given Redis command and their usage flags.",type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{description:"Key name",type:"string"},{description:"Set of key flags",type:"array",minItems:1,items:{type:"string"}}]}}},{id:"COMMAND HELP",group:"server",since:"5.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE","SENTINEL"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"COMMAND INFO",group:"server",since:"2.8.13",arity:-2,summary:"Returns information about one, multiple or all commands.",flags:["LOADING","STALE","SENTINEL"],arguments:[{name:"command-name",type:"string",optional:!0,multiple:!0}],reply:{type:"array",items:{oneOf:[{description:"command does not exist",type:"null"},{description:"command info array output",type:"array",minItems:10,maxItems:10,items:[{description:"command name",type:"string"},{description:"command arity",type:"integer"},{description:"command flags",type:"array",items:{description:"command flag",type:"string"}},{description:"command first key index",type:"integer"},{description:"command last key index",type:"integer"},{description:"command key step index",type:"integer"},{description:"command categories",type:"array",items:{description:"command category",type:"string"}},{description:"command tips",type:"array",items:{description:"command tip",type:"string"}},{description:"command key specs",type:"array",items:{type:"object",additionalProperties:!1,properties:{notes:{type:"string"},flags:{type:"array",items:{type:"string"}},begin_search:{type:"object",additionalProperties:!1,properties:{type:{type:"string"},spec:{anyOf:[{description:"unknown type, empty map",type:"object",additionalProperties:!1},{description:"index type",type:"object",additionalProperties:!1,properties:{index:{type:"integer"}}},{description:"keyword type",type:"object",additionalProperties:!1,properties:{keyword:{type:"string"},startfrom:{type:"integer"}}}]}}},find_keys:{type:"object",additionalProperties:!1,properties:{type:{type:"string"},spec:{anyOf:[{description:"unknown type",type:"object",additionalProperties:!1},{description:"range type",type:"object",additionalProperties:!1,properties:{lastkey:{type:"integer"},keystep:{type:"integer"},limit:{type:"integer"}}},{description:"keynum type",type:"object",additionalProperties:!1,properties:{keynumidx:{type:"integer"},firstkey:{type:"integer"},keystep:{type:"integer"}}}]}}}}}},{type:"array",description:"subcommands"}]}]}}},{id:"COMMAND LIST",group:"server",since:"7.0.0",arity:-2,summary:"Returns a list of command names.",flags:["LOADING","STALE","SENTINEL"],arguments:[{name:"filterby",type:"oneof",optional:!0,token:"FILTERBY",arguments:[{name:"module-name",type:"string",token:"MODULE"},{name:"category",type:"string",token:"ACLCAT"},{name:"pattern",type:"pattern",token:"PATTERN"}]}],reply:{type:"array",items:{description:"command name",type:"string"},uniqueItems:!0}},{id:"CONFIG",group:"server",since:"2.0.0",arity:-2,summary:"A container for server configuration commands.",flags:[],arguments:[]},{id:"CONFIG GET",group:"server",since:"2.0.0",arity:-3,summary:"Returns the effective values of configuration parameters.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[{name:"parameter",type:"string",multiple:!0}],reply:{type:"object",additionalProperties:{type:"string"}}},{id:"CONFIG HELP",group:"server",since:"5.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"CONFIG RESETSTAT",group:"server",since:"2.0.0",arity:2,summary:"Resets the server's statistics.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[],reply:{const:"OK"}},{id:"CONFIG REWRITE",group:"server",since:"2.8.0",arity:2,summary:"Persists the effective configuration to file.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[],reply:{const:"OK"}},{id:"CONFIG SET",group:"server",since:"2.0.0",arity:-4,summary:"Sets configuration parameters in-flight.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[{name:"data",type:"block",multiple:!0,arguments:[{name:"parameter",type:"string"},{name:"value",type:"string"}]}],reply:{const:"OK"}},{id:"COPY",group:"generic",since:"6.2.0",arity:-3,summary:"Copies the value of a key to a new key.",flags:["WRITE","DENYOOM"],arguments:[{name:"source",type:"key"},{name:"destination",type:"key"},{name:"destination-db",type:"integer",optional:!0,token:"DB"},{name:"replace",type:"pure-token",optional:!0,token:"REPLACE"}],reply:{oneOf:[{description:"source was copied",const:1},{description:"source was not copied",const:0}]}},{id:"DBSIZE",group:"server",since:"1.0.0",arity:1,summary:"Returns the number of keys in the database.",flags:["READONLY","FAST"],arguments:[],reply:{type:"integer",description:"The number of keys in the currently-selected database."}},{id:"DEBUG",group:"server",since:"1.0.0",arity:-2,summary:"A container for debugging commands.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","PROTECTED"],arguments:[]},{id:"DECR",group:"string",since:"1.0.0",arity:2,summary:"Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"}],reply:{type:"integer",description:"The value of the key after decrementing it."}},{id:"DECRBY",group:"string",since:"1.0.0",arity:3,summary:"Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"decrement",type:"integer"}],reply:{type:"integer",description:"The value of the key after decrementing it."}},{id:"DEL",group:"generic",since:"1.0.0",arity:-2,summary:"Deletes one or more keys.",flags:["WRITE"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{description:"the number of keys that were removed",type:"integer",minimum:0}},{id:"DISCARD",group:"transactions",since:"2.0.0",arity:1,summary:"Discards a transaction.",flags:["NOSCRIPT","LOADING","STALE","FAST","ALLOW_BUSY"],arguments:[],reply:{const:"OK"}},{id:"DUMP",group:"generic",since:"2.6.0",arity:2,summary:"Returns a serialized representation of the value stored at a key.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{description:"The serialized value.",type:"string"},{description:"Key does not exist.",type:"null"}]}},{id:"ECHO",group:"connection",since:"1.0.0",arity:2,summary:"Returns the given string.",flags:["LOADING","STALE","FAST"],arguments:[{name:"message",type:"string"}],reply:{description:"The given string",type:"string"}},{id:"EVAL",group:"scripting",since:"2.6.0",arity:-3,summary:"Executes a server-side Lua script.",flags:["NOSCRIPT","SKIP_MONITOR","MAY_REPLICATE","NO_MANDATORY_KEYS","STALE"],arguments:[{name:"script",type:"string"},{name:"numkeys",type:"integer"},{name:"key",type:"key",optional:!0,multiple:!0},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{description:"Return value depends on the script that is executed"}},{id:"EVAL_RO",group:"scripting",since:"7.0.0",arity:-3,summary:"Executes a read-only server-side Lua script.",flags:["NOSCRIPT","SKIP_MONITOR","NO_MANDATORY_KEYS","STALE","READONLY"],arguments:[{name:"script",type:"string"},{name:"numkeys",type:"integer"},{name:"key",type:"key",optional:!0,multiple:!0},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{description:"Return value depends on the script that is executed"}},{id:"EVALSHA",group:"scripting",since:"2.6.0",arity:-3,summary:"Executes a server-side Lua script by SHA1 digest.",flags:["NOSCRIPT","SKIP_MONITOR","MAY_REPLICATE","NO_MANDATORY_KEYS","STALE"],arguments:[{name:"sha1",type:"string"},{name:"numkeys",type:"integer"},{name:"key",type:"key",optional:!0,multiple:!0},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{description:"Return value depends on the script that is executed"}},{id:"EVALSHA_RO",group:"scripting",since:"7.0.0",arity:-3,summary:"Executes a read-only server-side Lua script by SHA1 digest.",flags:["NOSCRIPT","SKIP_MONITOR","NO_MANDATORY_KEYS","STALE","READONLY"],arguments:[{name:"sha1",type:"string"},{name:"numkeys",type:"integer"},{name:"key",type:"key",optional:!0,multiple:!0},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{description:"Return value depends on the script that is executed"}},{id:"EXEC",group:"transactions",since:"1.2.0",arity:1,summary:"Executes all commands in a transaction.",flags:["NOSCRIPT","LOADING","STALE","SKIP_SLOWLOG"],arguments:[],reply:{oneOf:[{description:"Each element being the reply to each of the commands in the atomic transaction.",type:"array"},{description:"The transaction was aborted because a `WATCH`ed key was touched",type:"null"}]}},{id:"EXISTS",group:"generic",since:"1.0.0",arity:-2,summary:"Determines whether one or more keys exist.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{description:"Number of keys that exist from those specified as arguments.",type:"integer"}},{id:"EXPIRE",group:"generic",since:"1.0.0",arity:-3,summary:"Sets the expiration time of a key in seconds.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"seconds",type:"integer"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"},{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]}],reply:{oneOf:[{description:"The timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.",const:0},{description:"The timeout was set.",const:1}]}},{id:"EXPIREAT",group:"generic",since:"1.2.0",arity:-3,summary:"Sets the expiration time of a key to a Unix timestamp.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"unix-time-seconds",type:"unix-time"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"},{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]}],reply:{oneOf:[{const:1,description:"The timeout was set."},{const:0,description:"The timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments."}]}},{id:"EXPIRETIME",group:"generic",since:"7.0.0",arity:2,summary:"Returns the expiration time of a key as a Unix timestamp.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{type:"integer",description:"Expiration Unix timestamp in seconds.",minimum:0},{const:-1,description:"The key exists but has no associated expiration time."},{const:-2,description:"The key does not exist."}]}},{id:"FAILOVER",group:"server",since:"6.2.0",arity:-1,summary:"Starts a coordinated failover from a server to one of its replicas.",flags:["ADMIN","NOSCRIPT","STALE"],arguments:[{name:"target",type:"block",optional:!0,token:"TO",arguments:[{name:"host",type:"string"},{name:"port",type:"integer"},{name:"force",type:"pure-token",optional:!0,token:"FORCE"}]},{name:"abort",type:"pure-token",optional:!0,token:"ABORT"},{name:"milliseconds",type:"integer",optional:!0,token:"TIMEOUT"}],reply:{const:"OK"}},{id:"FCALL",group:"scripting",since:"7.0.0",arity:-3,summary:"Invokes a function.",flags:["NOSCRIPT","SKIP_MONITOR","MAY_REPLICATE","NO_MANDATORY_KEYS","STALE"],arguments:[{name:"function",type:"string"},{name:"numkeys",type:"integer"},{name:"key",type:"key",optional:!0,multiple:!0},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{description:"Return value depends on the function that is executed"}},{id:"FCALL_RO",group:"scripting",since:"7.0.0",arity:-3,summary:"Invokes a read-only function.",flags:["NOSCRIPT","SKIP_MONITOR","NO_MANDATORY_KEYS","STALE","READONLY"],arguments:[{name:"function",type:"string"},{name:"numkeys",type:"integer"},{name:"key",type:"key",optional:!0,multiple:!0},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{description:"Return value depends on the function that is executed"}},{id:"FLUSHALL",group:"server",since:"1.0.0",arity:-1,summary:"Removes all keys from all databases.",flags:["WRITE"],arguments:[{name:"flush-type",type:"oneof",optional:!0,arguments:[{name:"async",type:"pure-token",token:"ASYNC"},{name:"sync",type:"pure-token",token:"SYNC"}]}],reply:{const:"OK"}},{id:"FLUSHDB",group:"server",since:"1.0.0",arity:-1,summary:"Remove all keys from the current database.",flags:["WRITE"],arguments:[{name:"flush-type",type:"oneof",optional:!0,arguments:[{name:"async",type:"pure-token",token:"ASYNC"},{name:"sync",type:"pure-token",token:"SYNC"}]}],reply:{const:"OK"}},{id:"FUNCTION",group:"scripting",since:"7.0.0",arity:-2,summary:"A container for function commands.",flags:[],arguments:[]},{id:"FUNCTION DELETE",group:"scripting",since:"7.0.0",arity:3,summary:"Deletes a library and its functions.",flags:["NOSCRIPT","WRITE"],arguments:[{name:"library-name",type:"string"}],reply:{const:"OK"}},{id:"FUNCTION DUMP",group:"scripting",since:"7.0.0",arity:2,summary:"Dumps all libraries into a serialized binary payload.",flags:["NOSCRIPT"],arguments:[],reply:{description:"the serialized payload",type:"string"}},{id:"FUNCTION FLUSH",group:"scripting",since:"7.0.0",arity:-2,summary:"Deletes all libraries and functions.",flags:["NOSCRIPT","WRITE"],arguments:[{name:"flush-type",type:"oneof",optional:!0,arguments:[{name:"async",type:"pure-token",token:"ASYNC"},{name:"sync",type:"pure-token",token:"SYNC"}]}],reply:{const:"OK"}},{id:"FUNCTION HELP",group:"scripting",since:"7.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"FUNCTION KILL",group:"scripting",since:"7.0.0",arity:2,summary:"Terminates a function during execution.",flags:["NOSCRIPT","ALLOW_BUSY"],arguments:[],reply:{const:"OK"}},{id:"FUNCTION LIST",group:"scripting",since:"7.0.0",arity:-2,summary:"Returns information about all libraries.",flags:["NOSCRIPT"],arguments:[{name:"library-name-pattern",type:"string",optional:!0,token:"LIBRARYNAME"},{name:"withcode",type:"pure-token",optional:!0,token:"WITHCODE"}],reply:{type:"array",items:{type:"object",additionalProperties:!1,properties:{library_name:{description:" the name of the library",type:"string"},engine:{description:"the engine of the library",type:"string"},functions:{description:"the list of functions in the library",type:"array",items:{type:"object",additionalProperties:!1,properties:{name:{description:"the name of the function",type:"string"},description:{description:"the function's description",oneOf:[{type:"null"},{type:"string"}]},flags:{description:"an array of function flags",type:"array",items:{type:"string"}}}}},library_code:{description:"the library's source code (when given the WITHCODE modifier)",type:"string"}}}}},{id:"FUNCTION LOAD",group:"scripting",since:"7.0.0",arity:-3,summary:"Creates a library.",flags:["NOSCRIPT","WRITE","DENYOOM"],arguments:[{name:"replace",type:"pure-token",optional:!0,token:"REPLACE"},{name:"function-code",type:"string"}],reply:{description:"The library name that was loaded",type:"string"}},{id:"FUNCTION RESTORE",group:"scripting",since:"7.0.0",arity:-3,summary:"Restores all libraries from a payload.",flags:["NOSCRIPT","WRITE","DENYOOM"],arguments:[{name:"serialized-value",type:"string"},{name:"policy",type:"oneof",optional:!0,arguments:[{name:"flush",type:"pure-token",token:"FLUSH"},{name:"append",type:"pure-token",token:"APPEND"},{name:"replace",type:"pure-token",token:"REPLACE"}]}],reply:{const:"OK"}},{id:"FUNCTION STATS",group:"scripting",since:"7.0.0",arity:2,summary:"Returns information about a function during execution.",flags:["NOSCRIPT","ALLOW_BUSY"],arguments:[],reply:{type:"object",additionalProperties:!1,properties:{running_script:{description:"information about the running script.",oneOf:[{description:"If there's no in-flight function",type:"null"},{description:"a map with the information about the running script",type:"object",additionalProperties:!1,properties:{name:{description:"the name of the function.",type:"string"},command:{description:"the command and arguments used for invoking the function.",type:"array",items:{type:"string"}},duration_ms:{description:"the function's runtime duration in milliseconds.",type:"integer"}}}]},engines:{description:"A map when each entry in the map represent a single engine.",type:"object",patternProperties:{"^.*$":{description:"Engine map contains statistics about the engine",type:"object",additionalProperties:!1,properties:{libraries_count:{description:"number of libraries",type:"integer"},functions_count:{description:"number of functions",type:"integer"}}}}}}}},{id:"GEOADD",group:"geo",since:"3.2.0",arity:-5,summary:"Adds one or more members to a geospatial index. The key is created if it doesn't exist.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"}]},{name:"change",type:"pure-token",optional:!0,token:"CH"},{name:"data",type:"block",multiple:!0,arguments:[{name:"longitude",type:"double"},{name:"latitude",type:"double"},{name:"member",type:"string"}]}],reply:{description:"When used without optional arguments, the number of elements added to the sorted set (excluding score updates). If the CH option is specified, the number of elements that were changed (added or updated).",type:"integer"}},{id:"GEODIST",group:"geo",since:"3.2.0",arity:-4,summary:"Returns the distance between two members of a geospatial index.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"member1",type:"string"},{name:"member2",type:"string"},{name:"unit",type:"oneof",optional:!0,arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]}],reply:{oneOf:[{description:"one or both of elements are missing",type:"null"},{description:"distance as a double (represented as a string) in the specified units",type:"string",pattern:"^[0-9]*(.[0-9]*)?$"}]}},{id:"GEOHASH",group:"geo",since:"3.2.0",arity:-2,summary:"Returns members from a geospatial index as geohash strings.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"member",type:"string",optional:!0,multiple:!0}],reply:{description:"An array where each element is the Geohash corresponding to each member name passed as argument to the command.",type:"array",items:{type:"string"}}},{id:"GEOPOS",group:"geo",since:"3.2.0",arity:-2,summary:"Returns the longitude and latitude of members from a geospatial index.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"member",type:"string",optional:!0,multiple:!0}],reply:{description:"An array where each element is a two elements array representing longitude and latitude (x,y) of each member name passed as argument to the command",type:"array",items:{oneOf:[{description:"Element does not exist",type:"null"},{type:"array",minItems:2,maxItems:2,items:[{description:"Latitude (x)",type:"number"},{description:"Longitude (y)",type:"number"}]}]}}},{id:"GEORADIUS",group:"geo",since:"3.2.0",arity:-6,summary:"Queries a geospatial index for members within a distance from a coordinate, optionally stores the result.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"longitude",type:"double"},{name:"latitude",type:"double"},{name:"radius",type:"double"},{name:"unit",type:"oneof",arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]},{name:"withcoord",type:"pure-token",optional:!0,token:"WITHCOORD"},{name:"withdist",type:"pure-token",optional:!0,token:"WITHDIST"},{name:"withhash",type:"pure-token",optional:!0,token:"WITHHASH"},{name:"count-block",type:"block",optional:!0,arguments:[{name:"count",type:"integer",token:"COUNT"},{name:"any",type:"pure-token",optional:!0,token:"ANY"}]},{name:"order",type:"oneof",optional:!0,arguments:[{name:"asc",type:"pure-token",token:"ASC"},{name:"desc",type:"pure-token",token:"DESC"}]},{name:"store",type:"oneof",optional:!0,arguments:[{name:"storekey",type:"key",token:"STORE"},{name:"storedistkey",type:"key",token:"STOREDIST"}]}],reply:{description:"Array of matched members information",anyOf:[{description:"If no WITH* option is specified, array of matched members names",type:"array",items:{description:"name",type:"string"}},{type:"array",items:{type:"array",minItems:1,maxItems:4,items:[{description:"Matched member name",type:"string"}],additionalItems:{oneOf:[{description:"If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",type:"string"},{description:"If WITHHASH option is specified, the geohash integer",type:"integer"},{description:"If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",type:"array",minItems:2,maxItems:2,items:[{description:"latitude (x)",type:"number"},{description:"longitude (y)",type:"number"}]}]}}},{description:"number of items stored in key",type:"integer"}]}},{id:"GEORADIUS_RO",group:"geo",since:"3.2.10",arity:-6,summary:"Returns members from a geospatial index that are within a distance from a coordinate.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"longitude",type:"double"},{name:"latitude",type:"double"},{name:"radius",type:"double"},{name:"unit",type:"oneof",arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]},{name:"withcoord",type:"pure-token",optional:!0,token:"WITHCOORD"},{name:"withdist",type:"pure-token",optional:!0,token:"WITHDIST"},{name:"withhash",type:"pure-token",optional:!0,token:"WITHHASH"},{name:"count-block",type:"block",optional:!0,arguments:[{name:"count",type:"integer",token:"COUNT"},{name:"any",type:"pure-token",optional:!0,token:"ANY"}]},{name:"order",type:"oneof",optional:!0,arguments:[{name:"asc",type:"pure-token",token:"ASC"},{name:"desc",type:"pure-token",token:"DESC"}]}],reply:{description:"Array of matched members information",anyOf:[{description:"If no WITH* option is specified, array of matched members names",type:"array",items:{description:"name",type:"string"}},{type:"array",items:{type:"array",minItems:1,maxItems:4,items:[{description:"Matched member name",type:"string"}],additionalItems:{oneOf:[{description:"If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",type:"string"},{description:"If WITHHASH option is specified, the geohash integer",type:"integer"},{description:"If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",type:"array",minItems:2,maxItems:2,items:[{description:"latitude (x)",type:"number"},{description:"longitude (y)",type:"number"}]}]}}}]}},{id:"GEORADIUSBYMEMBER",group:"geo",since:"3.2.0",arity:-5,summary:"Queries a geospatial index for members within a distance from a member, optionally stores the result.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"member",type:"string"},{name:"radius",type:"double"},{name:"unit",type:"oneof",arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]},{name:"withcoord",type:"pure-token",optional:!0,token:"WITHCOORD"},{name:"withdist",type:"pure-token",optional:!0,token:"WITHDIST"},{name:"withhash",type:"pure-token",optional:!0,token:"WITHHASH"},{name:"count-block",type:"block",optional:!0,arguments:[{name:"count",type:"integer",token:"COUNT"},{name:"any",type:"pure-token",optional:!0,token:"ANY"}]},{name:"order",type:"oneof",optional:!0,arguments:[{name:"asc",type:"pure-token",token:"ASC"},{name:"desc",type:"pure-token",token:"DESC"}]},{name:"store",type:"oneof",optional:!0,arguments:[{name:"storekey",type:"key",token:"STORE"},{name:"storedistkey",type:"key",token:"STOREDIST"}]}],reply:{description:"Array of matched members information",anyOf:[{description:"If no WITH* option is specified, array of matched members names",type:"array",items:{description:"name",type:"string"}},{type:"array",items:{type:"array",minItems:1,maxItems:4,items:[{description:"Matched member name",type:"string"}],additionalItems:{oneOf:[{description:"If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",type:"string"},{description:"If WITHHASH option is specified, the geohash integer",type:"integer"},{description:"If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",type:"array",minItems:2,maxItems:2,items:[{description:"latitude (x)",type:"number"},{description:"longitude (y)",type:"number"}]}]}}},{description:"number of items stored in key",type:"integer"}]}},{id:"GEORADIUSBYMEMBER_RO",group:"geo",since:"3.2.10",arity:-5,summary:"Returns members from a geospatial index that are within a distance from a member.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"member",type:"string"},{name:"radius",type:"double"},{name:"unit",type:"oneof",arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]},{name:"withcoord",type:"pure-token",optional:!0,token:"WITHCOORD"},{name:"withdist",type:"pure-token",optional:!0,token:"WITHDIST"},{name:"withhash",type:"pure-token",optional:!0,token:"WITHHASH"},{name:"count-block",type:"block",optional:!0,arguments:[{name:"count",type:"integer",token:"COUNT"},{name:"any",type:"pure-token",optional:!0,token:"ANY"}]},{name:"order",type:"oneof",optional:!0,arguments:[{name:"asc",type:"pure-token",token:"ASC"},{name:"desc",type:"pure-token",token:"DESC"}]}],reply:{description:"Array of matched members information",anyOf:[{description:"If no WITH* option is specified, array of matched members names",type:"array",items:{description:"name",type:"string"}},{type:"array",items:{type:"array",minItems:1,maxItems:4,items:[{description:"Matched member name",type:"string"}],additionalItems:{oneOf:[{description:"If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",type:"string"},{description:"If WITHHASH option is specified, the geohash integer",type:"integer"},{description:"If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",type:"array",minItems:2,maxItems:2,items:[{description:"latitude (x)",type:"number"},{description:"longitude (y)",type:"number"}]}]}}}]}},{id:"GEOSEARCH",group:"geo",since:"6.2.0",arity:-7,summary:"Queries a geospatial index for members inside an area of a box or a circle.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"from",type:"oneof",arguments:[{name:"member",type:"string",token:"FROMMEMBER"},{name:"fromlonlat",type:"block",token:"FROMLONLAT",arguments:[{name:"longitude",type:"double"},{name:"latitude",type:"double"}]}]},{name:"by",type:"oneof",arguments:[{name:"circle",type:"block",arguments:[{name:"radius",type:"double",token:"BYRADIUS"},{name:"unit",type:"oneof",arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]}]},{name:"box",type:"block",arguments:[{name:"width",type:"double",token:"BYBOX"},{name:"height",type:"double"},{name:"unit",type:"oneof",arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]}]}]},{name:"order",type:"oneof",optional:!0,arguments:[{name:"asc",type:"pure-token",token:"ASC"},{name:"desc",type:"pure-token",token:"DESC"}]},{name:"count-block",type:"block",optional:!0,arguments:[{name:"count",type:"integer",token:"COUNT"},{name:"any",type:"pure-token",optional:!0,token:"ANY"}]},{name:"withcoord",type:"pure-token",optional:!0,token:"WITHCOORD"},{name:"withdist",type:"pure-token",optional:!0,token:"WITHDIST"},{name:"withhash",type:"pure-token",optional:!0,token:"WITHHASH"}],reply:{description:"Array of matched members information",anyOf:[{description:"If no WITH* option is specified, array of matched members names",type:"array",items:{description:"name",type:"string"}},{type:"array",items:{type:"array",minItems:1,maxItems:4,items:[{description:"Matched member name",type:"string"}],additionalItems:{oneOf:[{description:"If WITHDIST option is specified, the distance from the center as a floating point number, in the same unit specified in the radius",type:"string"},{description:"If WITHHASH option is specified, the geohash integer",type:"integer"},{description:"If WITHCOORD option is specified, the coordinates as a two items x,y array (longitude,latitude)",type:"array",minItems:2,maxItems:2,items:[{description:"latitude (x)",type:"number"},{description:"longitude (y)",type:"number"}]}]}}}]}},{id:"GEOSEARCHSTORE",group:"geo",since:"6.2.0",arity:-8,summary:"Queries a geospatial index for members inside an area of a box or a circle, optionally stores the result.",flags:["WRITE","DENYOOM"],arguments:[{name:"destination",type:"key"},{name:"source",type:"key"},{name:"from",type:"oneof",arguments:[{name:"member",type:"string",token:"FROMMEMBER"},{name:"fromlonlat",type:"block",token:"FROMLONLAT",arguments:[{name:"longitude",type:"double"},{name:"latitude",type:"double"}]}]},{name:"by",type:"oneof",arguments:[{name:"circle",type:"block",arguments:[{name:"radius",type:"double",token:"BYRADIUS"},{name:"unit",type:"oneof",arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]}]},{name:"box",type:"block",arguments:[{name:"width",type:"double",token:"BYBOX"},{name:"height",type:"double"},{name:"unit",type:"oneof",arguments:[{name:"m",type:"pure-token",token:"m"},{name:"km",type:"pure-token",token:"km"},{name:"ft",type:"pure-token",token:"ft"},{name:"mi",type:"pure-token",token:"mi"}]}]}]},{name:"order",type:"oneof",optional:!0,arguments:[{name:"asc",type:"pure-token",token:"ASC"},{name:"desc",type:"pure-token",token:"DESC"}]},{name:"count-block",type:"block",optional:!0,arguments:[{name:"count",type:"integer",token:"COUNT"},{name:"any",type:"pure-token",optional:!0,token:"ANY"}]},{name:"storedist",type:"pure-token",optional:!0,token:"STOREDIST"}],reply:{description:"the number of elements in the resulting set",type:"integer"}},{id:"GET",group:"string",since:"1.0.0",arity:2,summary:"Returns the string value of a key.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{description:"The value of the key.",type:"string"},{description:"Key does not exist.",type:"null"}]}},{id:"GETBIT",group:"bitmap",since:"2.2.0",arity:3,summary:"Returns a bit value by offset.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"offset",type:"integer"}],reply:{description:"The bit value stored at offset.",oneOf:[{const:0},{const:1}]}},{id:"GETDEL",group:"string",since:"6.2.0",arity:2,summary:"Returns the string value of a key after deleting the key.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{description:"The value of the key.",type:"string"},{description:"The key does not exist.",type:"null"}]}},{id:"GETEX",group:"string",since:"6.2.0",arity:-2,summary:"Returns the string value of a key after setting its expiration time.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"expiration",type:"oneof",optional:!0,arguments:[{name:"seconds",type:"integer",token:"EX"},{name:"milliseconds",type:"integer",token:"PX"},{name:"unix-time-seconds",type:"unix-time",token:"EXAT"},{name:"unix-time-milliseconds",type:"unix-time",token:"PXAT"},{name:"persist",type:"pure-token",token:"PERSIST"}]}],reply:{oneOf:[{description:"The value of the key.",type:"string"},{description:"Key does not exist.",type:"null"}]}},{id:"GETRANGE",group:"string",since:"2.4.0",arity:4,summary:"Returns a substring of the string stored at a key.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"start",type:"integer"},{name:"end",type:"integer"}],reply:{type:"string",description:"The substring of the string value stored at key, determined by the offsets start and end (both are inclusive)."}},{id:"GETSET",group:"string",since:"1.0.0",arity:3,summary:"Returns the previous string value of a key after setting it to a new value.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"value",type:"string"}],reply:{oneOf:[{description:"The old value stored at the key.",type:"string"},{description:"The key does not exist.",type:"null"}]}},{id:"HDEL",group:"hash",since:"2.0.0",arity:-3,summary:"Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"field",type:"string",multiple:!0}],reply:{type:"integer",description:"The number of fields that were removed from the hash."}},{id:"HELLO",group:"connection",since:"6.0.0",arity:-1,summary:"Handshakes with the Redis server.",flags:["NOSCRIPT","LOADING","STALE","FAST","NO_AUTH","SENTINEL","ALLOW_BUSY"],arguments:[{name:"arguments",type:"block",optional:!0,arguments:[{name:"protover",type:"integer"},{name:"auth",type:"block",optional:!0,token:"AUTH",arguments:[{name:"username",type:"string"},{name:"password",type:"string"}]},{name:"clientname",type:"string",optional:!0,token:"SETNAME"}]}],reply:{type:"object",additionalProperties:!1,properties:{server:{type:"string"},version:{type:"string"},proto:{const:3},id:{type:"integer"},mode:{type:"string"},role:{type:"string"},modules:{type:"array",items:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ver:{type:"integer"},path:{type:"string"},args:{type:"array",items:{type:"string"}}}}}}}},{id:"HEXISTS",group:"hash",since:"2.0.0",arity:3,summary:"Determines whether a field exists in a hash.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"field",type:"string"}],reply:{oneOf:[{description:"The hash does not contain the field, or key does not exist.",const:0},{description:"The hash contains the field.",const:1}]}},{id:"HEXPIRE",group:"hash",since:"7.4.0",arity:-6,summary:"Set expiry for hash field using relative time to expire (seconds)",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"seconds",type:"integer"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"},{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"Specified NX | XX | GT | LT condition not met",const:0},{description:"Expiration time was set or updated.",const:1},{description:"Field deleted because the specified expiration time is in the past.",const:2}]}}},{id:"HEXPIREAT",group:"hash",since:"7.4.0",arity:-6,summary:"Set expiry for hash field using an absolute Unix timestamp (seconds)",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"unix-time-seconds",type:"unix-time"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"},{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"Specified NX | XX | GT | LT condition not met",const:0},{description:"Expiration time was set or updated.",const:1},{description:"Field deleted because the specified expiration time is in the past.",const:2}]}}},{id:"HEXPIRETIME",group:"hash",since:"7.4.0",arity:-5,summary:"Returns the expiration time of a hash field as a Unix timestamp, in seconds.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"The field exists but has no associated expire.",const:-1},{description:"Expiration Unix timestamp in seconds.",type:"integer",minimum:1}]}}},{id:"HGET",group:"hash",since:"2.0.0",arity:3,summary:"Returns the value of a field in a hash.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"field",type:"string"}],reply:{oneOf:[{description:"The value associated with the field.",type:"string"},{description:"If the field is not present in the hash or key does not exist.",type:"null"}]}},{id:"HGETALL",group:"hash",since:"2.0.0",arity:2,summary:"Returns all fields and values in a hash.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{type:"object",description:"Map of fields and their values stored in the hash, or an empty list when key does not exist. In RESP2 this is returned as a flat array.",additionalProperties:{type:"string"}}},{id:"HINCRBY",group:"hash",since:"2.0.0",arity:4,summary:"Increments the integer value of a field in a hash by a number. Uses 0 as initial value if the field doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"field",type:"string"},{name:"increment",type:"integer"}],reply:{type:"integer",description:"The value of the field after the increment operation."}},{id:"HINCRBYFLOAT",group:"hash",since:"2.6.0",arity:4,summary:"Increments the floating point value of a field by a number. Uses 0 as initial value if the field doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"field",type:"string"},{name:"increment",type:"double"}],reply:{type:"string",description:"The value of the field after the increment operation."}},{id:"HKEYS",group:"hash",since:"2.0.0",arity:2,summary:"Returns all fields in a hash.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{type:"array",description:"List of fields in the hash, or an empty list when the key does not exist.",uniqueItems:!0,items:{type:"string"}}},{id:"HLEN",group:"hash",since:"2.0.0",arity:2,summary:"Returns the number of fields in a hash.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{type:"integer",description:"Number of the fields in the hash, or 0 when the key does not exist."}},{id:"HMGET",group:"hash",since:"2.0.0",arity:-3,summary:"Returns the values of all fields in a hash.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"field",type:"string",multiple:!0}],reply:{description:"List of values associated with the given fields, in the same order as they are requested.",type:"array",minItems:1,items:{oneOf:[{type:"string"},{type:"null"}]}}},{id:"HMSET",group:"hash",since:"2.0.0",arity:-4,summary:"Sets the values of multiple fields.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"data",type:"block",multiple:!0,arguments:[{name:"field",type:"string"},{name:"value",type:"string"}]}],reply:{const:"OK"}},{id:"HPERSIST",group:"hash",since:"7.4.0",arity:-5,summary:"Removes the expiration time for each specified field",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"The field exists but has no associated expire.",const:-1},{description:"Expiration time was removed",const:1}]}}},{id:"HPEXPIRE",group:"hash",since:"7.4.0",arity:-6,summary:"Set expiry for hash field using relative time to expire (milliseconds)",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"milliseconds",type:"integer"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"},{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"Specified NX | XX | GT | LT condition not met",const:0},{description:"Expiration time was set or updated.",const:1},{description:"Field deleted because the specified expiration time is in the past.",const:2}]}}},{id:"HPEXPIREAT",group:"hash",since:"7.4.0",arity:-6,summary:"Set expiry for hash field using an absolute Unix timestamp (milliseconds)",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"unix-time-milliseconds",type:"unix-time"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"},{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"Specified NX | XX | GT | LT condition not met",const:0},{description:"Expiration time was set or updated.",const:1},{description:"Field deleted because the specified expiration time is in the past.",const:2}]}}},{id:"HPEXPIRETIME",group:"hash",since:"7.4.0",arity:-5,summary:"Returns the expiration time of a hash field as a Unix timestamp, in msec.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"The field exists but has no associated expire.",const:-1},{description:"Expiration Unix timestamp in milliseconds.",type:"integer",minimum:1}]}}},{id:"HPTTL",group:"hash",since:"7.4.0",arity:-5,summary:"Returns the TTL in milliseconds of a hash field.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"The field exists but has no associated expire.",const:-1},{description:"TTL in milliseconds.",type:"integer",minimum:1}]}}},{id:"HRANDFIELD",group:"hash",since:"6.2.0",arity:-2,summary:"Returns one or more random fields from a hash.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"options",type:"block",optional:!0,arguments:[{name:"count",type:"integer"},{name:"withvalues",type:"pure-token",optional:!0,token:"WITHVALUES"}]}],reply:{anyOf:[{description:"Key doesn't exist",type:"null"},{description:"A single random field. Returned in case `COUNT` was not used.",type:"string"},{description:"A list of fields. Returned in case `COUNT` was used.",type:"array",items:{type:"string"}},{description:"Fields and their values. Returned in case `COUNT` and `WITHVALUES` were used. In RESP2 this is returned as a flat array.",type:"array",items:{type:"array",minItems:2,maxItems:2,items:[{description:"Field",type:"string"},{description:"Value",type:"string"}]}}]}},{id:"HSCAN",group:"hash",since:"2.8.0",arity:-3,summary:"Iterates over fields and values of a hash.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"cursor",type:"integer"},{name:"pattern",type:"pattern",optional:!0,token:"MATCH"},{name:"count",type:"integer",optional:!0,token:"COUNT"},{name:"novalues",type:"pure-token",optional:!0,token:"NOVALUES"}],reply:{description:"cursor and scan response in array form",type:"array",minItems:2,maxItems:2,items:[{description:"cursor",type:"string"},{description:"list of key/value pairs from the hash where each even element is the key, and each odd element is the value, or when novalues option is on, a list of keys from the hash",type:"array",items:{type:"string"}}]}},{id:"HSET",group:"hash",since:"2.0.0",arity:-4,summary:"Creates or modifies the value of a field in a hash.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"data",type:"block",multiple:!0,arguments:[{name:"field",type:"string"},{name:"value",type:"string"}]}],reply:{description:"The number of fields that were added",type:"integer"}},{id:"HSETNX",group:"hash",since:"2.0.0",arity:4,summary:"Sets the value of a field in a hash only when the field doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"field",type:"string"},{name:"value",type:"string"}],reply:{oneOf:[{description:"The field is a new field in the hash and value was set.",const:0},{description:"The field already exists in the hash and no operation was performed.",const:1}]}},{id:"HSTRLEN",group:"hash",since:"3.2.0",arity:3,summary:"Returns the length of the value of a field.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"field",type:"string"}],reply:{type:"integer",description:"String length of the value associated with the field, or zero when the field is not present in the hash or key does not exist at all.",minimum:0}},{id:"HTTL",group:"hash",since:"7.4.0",arity:-5,summary:"Returns the TTL in seconds of a hash field.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"fields",type:"block",token:"FIELDS",arguments:[{name:"numfields",type:"integer"},{name:"field",type:"string",multiple:!0}]}],reply:{description:"Array of results. Returns empty array if the key does not exist.",type:"array",minItems:0,maxItems:4294967295,items:{oneOf:[{description:"The field does not exist.",const:-2},{description:"The field exists but has no associated expire.",const:-1},{description:"TTL in seconds.",type:"integer",minimum:1}]}}},{id:"HVALS",group:"hash",since:"2.0.0",arity:2,summary:"Returns all values in a hash.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{type:"array",description:"List of values in the hash, or an empty list when the key does not exist.",items:{type:"string"}}},{id:"INCR",group:"string",since:"1.0.0",arity:2,summary:"Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"}],reply:{description:"The value of key after the increment",type:"integer"}},{id:"INCRBY",group:"string",since:"1.0.0",arity:3,summary:"Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"increment",type:"integer"}],reply:{type:"integer",description:"The value of the key after incrementing it."}},{id:"INCRBYFLOAT",group:"string",since:"2.6.0",arity:3,summary:"Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"increment",type:"double"}],reply:{type:"string",description:"The value of the key after incrementing it."}},{id:"INFO",group:"server",since:"1.0.0",arity:-1,summary:"Returns information and statistics about the server.",flags:["LOADING","STALE","SENTINEL"],arguments:[{name:"section",type:"string",optional:!0,multiple:!0}],reply:{description:"A map of info fields, one field per line in the form of <field>:<value> where the value can be a comma separated map like <key>=<val>. Also contains section header lines starting with `#` and blank lines.",type:"string"}},{id:"KEYS",group:"generic",since:"1.0.0",arity:2,summary:"Returns all key names that match a pattern.",flags:["READONLY"],arguments:[{name:"pattern",type:"pattern"}],reply:{description:"list of keys matching pattern",type:"array",items:{type:"string"}}},{id:"LASTSAVE",group:"server",since:"1.0.0",arity:1,summary:"Returns the Unix timestamp of the last successful save to disk.",flags:["LOADING","STALE","FAST"],arguments:[],reply:{type:"integer",description:"UNIX TIME of the last DB save executed with success."}},{id:"LATENCY",group:"server",since:"2.8.13",arity:-2,summary:"A container for latency diagnostics commands.",flags:[],arguments:[]},{id:"LATENCY DOCTOR",group:"server",since:"2.8.13",arity:2,summary:"Returns a human-readable latency analysis report.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[],reply:{type:"string",description:"A human readable latency analysis report."}},{id:"LATENCY GRAPH",group:"server",since:"2.8.13",arity:3,summary:"Returns a latency graph for an event.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[{name:"event",type:"string"}],reply:{type:"string",description:"Latency graph"}},{id:"LATENCY HELP",group:"server",since:"2.8.13",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"LATENCY HISTOGRAM",group:"server",since:"7.0.0",arity:-2,summary:"Returns the cumulative distribution of latencies of a subset or all commands.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[{name:"COMMAND",type:"string",optional:!0,multiple:!0}],reply:{type:"object",description:"A map where each key is a command name, and each value is a map with the total calls, and an inner map of the histogram time buckets.",patternProperties:{"^.*$":{type:"object",additionalProperties:!1,properties:{calls:{description:"The total calls for the command.",type:"integer",minimum:0},histogram_usec:{description:"Histogram map, bucket id to latency",type:"object",additionalProperties:{type:"integer"}}}}}}},{id:"LATENCY HISTORY",group:"server",since:"2.8.13",arity:3,summary:"Returns timestamp-latency samples for an event.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[{name:"event",type:"string"}],reply:{type:"array",description:"An array where each element is a two elements array representing the timestamp and the latency of the event.",items:{type:"array",minItems:2,maxItems:2,items:[{description:"timestamp of the event",type:"integer",minimum:0},{description:"latency of the event",type:"integer",minimum:0}]}}},{id:"LATENCY LATEST",group:"server",since:"2.8.13",arity:2,summary:"Returns the latest latency samples for all events.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[],reply:{type:"array",description:"An array where each element is a four elements array representing the event's name, timestamp, latest and all-time latency measurements.",items:{type:"array",minItems:4,maxItems:4,items:[{type:"string",description:"Event name."},{type:"integer",description:"Timestamp."},{type:"integer",description:"Latest latency in milliseconds."},{type:"integer",description:"Max latency in milliseconds."}]}}},{id:"LATENCY RESET",group:"server",since:"2.8.13",arity:-2,summary:"Resets the latency data for one or more events.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[{name:"event",type:"string",optional:!0,multiple:!0}],reply:{type:"integer",description:"Number of event time series that were reset."}},{id:"LCS",group:"string",since:"7.0.0",arity:-3,summary:"Finds the longest common substring.",flags:["READONLY"],arguments:[{name:"key1",type:"key"},{name:"key2",type:"key"},{name:"len",type:"pure-token",optional:!0,token:"LEN"},{name:"idx",type:"pure-token",optional:!0,token:"IDX"},{name:"min-match-len",type:"integer",optional:!0,token:"MINMATCHLEN"},{name:"withmatchlen",type:"pure-token",optional:!0,token:"WITHMATCHLEN"}],reply:{oneOf:[{type:"string",description:"The longest common subsequence."},{type:"integer",description:"The length of the longest common subsequence when 'LEN' is given."},{type:"object",description:"Array with the LCS length and all the ranges in both the strings when 'IDX' is given. In RESP2 this is returned as a flat array",additionalProperties:!1,properties:{matches:{type:"array",items:{type:"array",minItems:2,maxItems:3,items:[{type:"array",description:"Matched range in the first string.",minItems:2,maxItems:2,items:{type:"integer"}},{type:"array",description:"Matched range in the second string.",minItems:2,maxItems:2,items:{type:"integer"}}],additionalItems:{type:"integer",description:"The length of the match when 'WITHMATCHLEN' is given."}}},len:{type:"integer",description:"Length of the longest common subsequence."}}}]}},{id:"LINDEX",group:"list",since:"1.0.0",arity:3,summary:"Returns an element from a list by its index.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"index",type:"integer"}],reply:{oneOf:[{type:"null",description:"Index is out of range"},{description:"The requested element",type:"string"}]}},{id:"LINSERT",group:"list",since:"2.2.0",arity:5,summary:"Inserts an element before or after another element in a list.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"where",type:"oneof",arguments:[{name:"before",type:"pure-token",token:"BEFORE"},{name:"after",type:"pure-token",token:"AFTER"}]},{name:"pivot",type:"string"},{name:"element",type:"string"}],reply:{oneOf:[{description:"List length after a successful insert operation.",type:"integer",minimum:1},{description:"in case key doesn't exist.",const:0},{description:"when the pivot wasn't found.",const:-1}]}},{id:"LLEN",group:"list",since:"1.0.0",arity:2,summary:"Returns the length of a list.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{description:"List length.",type:"integer",minimum:0}},{id:"LMOVE",group:"list",since:"6.2.0",arity:5,summary:"Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved.",flags:["WRITE","DENYOOM"],arguments:[{name:"source",type:"key"},{name:"destination",type:"key"},{name:"wherefrom",type:"oneof",arguments:[{name:"left",type:"pure-token",token:"LEFT"},{name:"right",type:"pure-token",token:"RIGHT"}]},{name:"whereto",type:"oneof",arguments:[{name:"left",type:"pure-token",token:"LEFT"},{name:"right",type:"pure-token",token:"RIGHT"}]}],reply:{description:"The element being popped and pushed.",type:"string"}},{id:"LMPOP",group:"list",since:"7.0.0",arity:-4,summary:"Returns multiple elements from a list after removing them. Deletes the list if the last element was popped.",flags:["WRITE"],arguments:[{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"where",type:"oneof",arguments:[{name:"left",type:"pure-token",token:"LEFT"},{name:"right",type:"pure-token",token:"RIGHT"}]},{name:"count",type:"integer",optional:!0,token:"COUNT"}],reply:{anyOf:[{description:"If no element could be popped.",type:"null"},{description:"List key from which elements were popped.",type:"array",minItems:2,maxItems:2,items:[{description:"Name of the key from which elements were popped.",type:"string"},{description:"Array of popped elements.",type:"array",minItems:1,items:{type:"string"}}]}]}},{id:"LOLWUT",group:"server",since:"5.0.0",arity:-1,summary:"Displays computer art and the Redis version",flags:["READONLY","FAST"],arguments:[{name:"version",type:"integer",optional:!0,token:"VERSION"}],reply:{type:"string",description:"String containing the generative computer art, and a text with the Redis version."}},{id:"LPOP",group:"list",since:"1.0.0",arity:-2,summary:"Returns the first elements in a list after removing it. Deletes the list if the last element was popped.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"count",type:"integer",optional:!0}],reply:{oneOf:[{description:"Key does not exist.",type:"null"},{description:"In case `count` argument was not given, the value of the first element.",type:"string"},{description:"In case `count` argument was given, a list of popped elements",type:"array",items:{type:"string"}}]}},{id:"LPOS",group:"list",since:"6.0.6",arity:-3,summary:"Returns the index of matching elements in a list.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"element",type:"string"},{name:"rank",type:"integer",optional:!0,token:"RANK"},{name:"num-matches",type:"integer",optional:!0,token:"COUNT"},{name:"len",type:"integer",optional:!0,token:"MAXLEN"}],reply:{anyOf:[{description:"In case there is no matching element",type:"null"},{description:"An integer representing the matching element",type:"integer"},{description:"If the COUNT option is given, an array of integers representing the matching elements (empty if there are no matches)",type:"array",uniqueItems:!0,items:{type:"integer"}}]}},{id:"LPUSH",group:"list",since:"1.0.0",arity:-3,summary:"Prepends one or more elements to a list. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"element",type:"string",multiple:!0}],reply:{description:"Length of the list after the push operations.",type:"integer"}},{id:"LPUSHX",group:"list",since:"2.2.0",arity:-3,summary:"Prepends one or more elements to a list only when the list exists.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"element",type:"string",multiple:!0}],reply:{type:"integer",description:"the length of the list after the push operation",minimum:0}},{id:"LRANGE",group:"list",since:"1.0.0",arity:4,summary:"Returns a range of elements from a list.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"start",type:"integer"},{name:"stop",type:"integer"}],reply:{description:"List of elements in the specified range",type:"array",items:{type:"string"}}},{id:"LREM",group:"list",since:"1.0.0",arity:4,summary:"Removes elements from a list. Deletes the list if the last element was removed.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"count",type:"integer"},{name:"element",type:"string"}],reply:{description:"The number of removed elements.",type:"integer",minimum:0}},{id:"LSET",group:"list",since:"1.0.0",arity:4,summary:"Sets the value of an element in a list by its index.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"index",type:"integer"},{name:"element",type:"string"}],reply:{const:"OK"}},{id:"LTRIM",group:"list",since:"1.0.0",arity:4,summary:"Removes elements from both ends a list. Deletes the list if all elements were trimmed.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"start",type:"integer"},{name:"stop",type:"integer"}],reply:{const:"OK"}},{id:"MEMORY",group:"server",since:"4.0.0",arity:-2,summary:"A container for memory diagnostics commands.",flags:[],arguments:[]},{id:"MEMORY DOCTOR",group:"server",since:"4.0.0",arity:2,summary:"Outputs a memory problems report.",flags:[],arguments:[],reply:{description:"memory problems report",type:"string"}},{id:"MEMORY HELP",group:"server",since:"4.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"MEMORY MALLOC-STATS",group:"server",since:"4.0.0",arity:2,summary:"Returns the allocator statistics.",flags:[],arguments:[],reply:{type:"string",description:"The memory allocator's internal statistics report."}},{id:"MEMORY PURGE",group:"server",since:"4.0.0",arity:2,summary:"Asks the allocator to release memory.",flags:[],arguments:[],reply:{const:"OK"}},{id:"MEMORY STATS",group:"server",since:"4.0.0",arity:2,summary:"Returns details about memory usage.",flags:[],arguments:[],reply:{description:"memory usage details",type:"object",additionalProperties:!1,properties:{"peak.allocated":{type:"integer"},"total.allocated":{type:"integer"},"startup.allocated":{type:"integer"},"replication.backlog":{type:"integer"},"clients.slaves":{type:"integer"},"clients.normal":{type:"integer"},"cluster.links":{type:"integer"},"aof.buffer":{type:"integer"},"lua.caches":{type:"integer"},"functions.caches":{type:"integer"},"overhead.db.hashtable.lut":{type:"integer"},"overhead.db.hashtable.rehashing":{type:"integer"},"overhead.total":{type:"integer"},"db.dict.rehashing.count":{type:"integer"},"keys.count":{type:"integer"},"keys.bytes-per-key":{type:"integer"},"dataset.bytes":{type:"integer"},"dataset.percentage":{type:"number"},"peak.percentage":{type:"number"},"allocator.allocated":{type:"integer"},"allocator.active":{type:"integer"},"allocator.resident":{type:"integer"},"allocator.muzzy":{type:"integer"},"allocator-fragmentation.ratio":{type:"number"},"allocator-fragmentation.bytes":{type:"integer"},"allocator-rss.ratio":{type:"number"},"allocator-rss.bytes":{type:"integer"},"rss-overhead.ratio":{type:"number"},"rss-overhead.bytes":{type:"integer"},fragmentation:{type:"number"},"fragmentation.bytes":{type:"integer"}},patternProperties:{"^db\\.\\d+$":{type:"object",properties:{"overhead.hashtable.main":{type:"integer"},"overhead.hashtable.expires":{type:"integer"}},additionalProperties:!1}}}},{id:"MEMORY USAGE",group:"server",since:"4.0.0",arity:-3,summary:"Estimates the memory usage of a key.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"count",type:"integer",optional:!0,token:"SAMPLES"}],reply:{oneOf:[{description:"Number of bytes that a key and its value require to be stored in RAM.",type:"integer"},{description:"Key does not exist.",type:"null"}]}},{id:"MGET",group:"string",since:"1.0.0",arity:-2,summary:"Atomically returns the string values of one or more keys.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{description:"List of values at the specified keys.",type:"array",minItems:1,items:{oneOf:[{type:"string"},{type:"null"}]}}},{id:"MIGRATE",group:"generic",since:"2.6.0",arity:-6,summary:"Atomically transfers a key from one Redis instance to another.",flags:["WRITE"],arguments:[{name:"host",type:"string"},{name:"port",type:"integer"},{name:"key-selector",type:"oneof",arguments:[{name:"key",type:"key"},{name:"empty-string",type:"pure-token",token:'""'}]},{name:"destination-db",type:"integer"},{name:"timeout",type:"integer"},{name:"copy",type:"pure-token",optional:!0,token:"COPY"},{name:"replace",type:"pure-token",optional:!0,token:"REPLACE"},{name:"authentication",type:"oneof",optional:!0,arguments:[{name:"auth",type:"string",token:"AUTH"},{name:"auth2",type:"block",token:"AUTH2",arguments:[{name:"username",type:"string"},{name:"password",type:"string"}]}]},{name:"keys",type:"key",optional:!0,multiple:!0,token:"KEYS"}],reply:{oneOf:[{const:"OK",description:"Success."},{const:"NOKEY",description:"No keys were found in the source instance."}]}},{id:"MODULE",group:"server",since:"4.0.0",arity:-2,summary:"A container for module commands.",flags:[],arguments:[]},{id:"MODULE HELP",group:"server",since:"5.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"MODULE LIST",group:"server",since:"4.0.0",arity:2,summary:"Returns all loaded modules.",flags:["ADMIN","NOSCRIPT"],arguments:[],reply:{type:"array",description:"Returns information about the modules loaded to the server.",items:{type:"object",additionalProperties:!1,properties:{name:{type:"string",description:"Name of the module."},ver:{type:"integer",description:"Version of the module."},path:{type:"string",description:"Module path."},args:{type:"array",description:"Module arguments.",items:{type:"string"}}}}}},{id:"MODULE LOAD",group:"server",since:"4.0.0",arity:-3,summary:"Loads a module.",flags:["NO_ASYNC_LOADING","ADMIN","NOSCRIPT","PROTECTED"],arguments:[{name:"path",type:"string"},{name:"arg",type:"string",optional:!0,multiple:!0}],reply:{const:"OK"}},{id:"MODULE LOADEX",group:"server",since:"7.0.0",arity:-3,summary:"Loads a module using extended parameters.",flags:["NO_ASYNC_LOADING","ADMIN","NOSCRIPT","PROTECTED"],arguments:[{name:"path",type:"string"},{name:"configs",type:"block",optional:!0,multiple:!0,token:"CONFIG",arguments:[{name:"name",type:"string"},{name:"value",type:"string"}]},{name:"args",type:"string",optional:!0,multiple:!0,token:"ARGS"}],reply:{const:"OK"}},{id:"MODULE UNLOAD",group:"server",since:"4.0.0",arity:3,summary:"Unloads a module.",flags:["NO_ASYNC_LOADING","ADMIN","NOSCRIPT","PROTECTED"],arguments:[{name:"name",type:"string"}],reply:{const:"OK"}},{id:"MONITOR",group:"server",since:"1.0.0",arity:1,summary:"Listens for all requests received by the server in real-time.",flags:["ADMIN","NOSCRIPT","LOADING","STALE"],arguments:[]},{id:"MOVE",group:"generic",since:"1.0.0",arity:3,summary:"Moves a key to another database.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"db",type:"integer"}],reply:{oneOf:[{description:"key was moved",const:1},{description:"key wasn't moved",const:0}]}},{id:"MSET",group:"string",since:"1.0.1",arity:-3,summary:"Atomically creates or modifies the string values of one or more keys.",flags:["WRITE","DENYOOM"],arguments:[{name:"data",type:"block",multiple:!0,arguments:[{name:"key",type:"key"},{name:"value",type:"string"}]}],reply:{const:"OK"}},{id:"MSETNX",group:"string",since:"1.0.1",arity:-3,summary:"Atomically modifies the string values of one or more keys only when all keys don't exist.",flags:["WRITE","DENYOOM"],arguments:[{name:"data",type:"block",multiple:!0,arguments:[{name:"key",type:"key"},{name:"value",type:"string"}]}],reply:{oneOf:[{description:"No key was set (at least one key already existed).",const:0},{description:"All the keys were set.",const:1}]}},{id:"MULTI",group:"transactions",since:"1.2.0",arity:1,summary:"Starts a transaction.",flags:["NOSCRIPT","LOADING","STALE","FAST","ALLOW_BUSY"],arguments:[],reply:{const:"OK"}},{id:"OBJECT",group:"generic",since:"2.2.3",arity:-2,summary:"A container for object introspection commands.",flags:[],arguments:[]},{id:"OBJECT ENCODING",group:"generic",since:"2.2.3",arity:3,summary:"Returns the internal encoding of a Redis object.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{description:"key doesn't exist",type:"null"},{description:"encoding of the object",type:"string"}]}},{id:"OBJECT FREQ",group:"generic",since:"4.0.0",arity:3,summary:"Returns the logarithmic access frequency counter of a Redis object.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{description:"the counter's value",type:"integer"}},{id:"OBJECT HELP",group:"generic",since:"6.2.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"OBJECT IDLETIME",group:"generic",since:"2.2.3",arity:3,summary:"Returns the time since the last access to a Redis object.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{description:"the idle time in seconds",type:"integer"}},{id:"OBJECT REFCOUNT",group:"generic",since:"2.2.3",arity:3,summary:"Returns the reference count of a value of a key.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{description:"the number of references",type:"integer"}},{id:"PERSIST",group:"generic",since:"2.2.0",arity:2,summary:"Removes the expiration time of a key.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{const:0,description:"Key does not exist or does not have an associated timeout."},{const:1,description:"The timeout has been removed."}]}},{id:"PEXPIRE",group:"generic",since:"2.6.0",arity:-3,summary:"Sets the expiration time of a key in milliseconds.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"milliseconds",type:"integer"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"},{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]}],reply:{oneOf:[{const:0,description:"The timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments."},{const:1,description:"The timeout was set."}]}},{id:"PEXPIREAT",group:"generic",since:"2.6.0",arity:-3,summary:"Sets the expiration time of a key to a Unix milliseconds timestamp.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"unix-time-milliseconds",type:"unix-time"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"},{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]}],reply:{oneOf:[{const:1,description:"The timeout was set."},{const:0,description:"The timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments."}]}},{id:"PEXPIRETIME",group:"generic",since:"7.0.0",arity:2,summary:"Returns the expiration time of a key as a Unix milliseconds timestamp.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{type:"integer",description:"Expiration Unix timestamp in milliseconds.",minimum:0},{const:-1,description:"The key exists but has no associated expiration time."},{const:-2,description:"The key does not exist."}]}},{id:"PFADD",group:"hyperloglog",since:"2.8.9",arity:-2,summary:"Adds elements to a HyperLogLog key. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"element",type:"string",optional:!0,multiple:!0}],reply:{oneOf:[{description:"if at least 1 HyperLogLog internal register was altered",const:1},{description:"if no HyperLogLog internal register were altered",const:0}]}},{id:"PFCOUNT",group:"hyperloglog",since:"2.8.9",arity:-2,summary:"Returns the approximated cardinality of the set(s) observed by the HyperLogLog key(s).",flags:["READONLY","MAY_REPLICATE"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{description:"The approximated number of unique elements observed via PFADD",type:"integer"}},{id:"PFDEBUG",group:"hyperloglog",since:"2.8.9",arity:3,summary:"Internal commands for debugging HyperLogLog values.",flags:["WRITE","DENYOOM","ADMIN"],arguments:[{name:"subcommand",type:"string"},{name:"key",type:"key"}]},{id:"PFMERGE",group:"hyperloglog",since:"2.8.9",arity:-2,summary:"Merges one or more HyperLogLog values into a single key.",flags:["WRITE","DENYOOM"],arguments:[{name:"destkey",type:"key"},{name:"sourcekey",type:"key",optional:!0,multiple:!0}],reply:{const:"OK"}},{id:"PFSELFTEST",group:"hyperloglog",since:"2.8.9",arity:1,summary:"An internal command for testing HyperLogLog values.",flags:["ADMIN"],arguments:[],reply:{const:"OK"}},{id:"PING",group:"connection",since:"1.0.0",arity:-1,summary:"Returns the server's liveliness response.",flags:["FAST","SENTINEL"],arguments:[{name:"message",type:"string",optional:!0}],reply:{anyOf:[{const:"PONG",description:"Default reply."},{type:"string",description:"Relay of given `message`."}]}},{id:"PSETEX",group:"string",since:"2.6.0",arity:4,summary:"Sets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"milliseconds",type:"integer"},{name:"value",type:"string"}],reply:{const:"OK"}},{id:"PSUBSCRIBE",group:"pubsub",since:"2.0.0",arity:-2,summary:"Listens for messages published to channels that match one or more patterns.",flags:["PUBSUB","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"pattern",type:"pattern",multiple:!0}]},{id:"PSYNC",group:"server",since:"2.8.0",arity:-3,summary:"An internal command used in replication.",flags:["NO_ASYNC_LOADING","ADMIN","NO_MULTI","NOSCRIPT"],arguments:[{name:"replicationid",type:"string"},{name:"offset",type:"integer"}]},{id:"PTTL",group:"generic",since:"2.6.0",arity:2,summary:"Returns the expiration time in milliseconds of a key.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{description:"TTL in milliseconds.",type:"integer",minimum:0},{description:"The key exists but has no associated expire.",const:-1},{description:"The key does not exist.",const:-2}]}},{id:"PUBLISH",group:"pubsub",since:"2.0.0",arity:3,summary:"Posts a message to a channel.",flags:["PUBSUB","LOADING","STALE","FAST","MAY_REPLICATE","SENTINEL"],arguments:[{name:"channel",type:"string"},{name:"message",type:"string"}],reply:{description:"the number of clients that received the message. Note that in a Redis Cluster, only clients that are connected to the same node as the publishing client are included in the count",type:"integer",minimum:0}},{id:"PUBSUB",group:"pubsub",since:"2.8.0",arity:-2,summary:"A container for Pub/Sub commands.",flags:[],arguments:[]},{id:"PUBSUB CHANNELS",group:"pubsub",since:"2.8.0",arity:-2,summary:"Returns the active channels.",flags:["PUBSUB","LOADING","STALE"],arguments:[{name:"pattern",type:"pattern",optional:!0}],reply:{description:"a list of active channels, optionally matching the specified pattern",type:"array",uniqueItems:!0,items:{type:"string"}}},{id:"PUBSUB HELP",group:"pubsub",since:"6.2.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"PUBSUB NUMPAT",group:"pubsub",since:"2.8.0",arity:2,summary:"Returns a count of unique pattern subscriptions.",flags:["PUBSUB","LOADING","STALE"],arguments:[],reply:{description:"the number of patterns all the clients are subscribed to",type:"integer",minimum:0}},{id:"PUBSUB NUMSUB",group:"pubsub",since:"2.8.0",arity:-2,summary:"Returns a count of subscribers to channels.",flags:["PUBSUB","LOADING","STALE"],arguments:[{name:"channel",type:"string",optional:!0,multiple:!0}],reply:{description:"the number of subscribers per channel, each even element (including 0th) is channel name, each odd element is the number of subscribers",type:"array"}},{id:"PUBSUB SHARDCHANNELS",group:"pubsub",since:"7.0.0",arity:-2,summary:"Returns the active shard channels.",flags:["PUBSUB","LOADING","STALE"],arguments:[{name:"pattern",type:"pattern",optional:!0}],reply:{description:"a list of active channels, optionally matching the specified pattern",type:"array",items:{type:"string"},uniqueItems:!0}},{id:"PUBSUB SHARDNUMSUB",group:"pubsub",since:"7.0.0",arity:-2,summary:"Returns the count of subscribers of shard channels.",flags:["PUBSUB","LOADING","STALE"],arguments:[{name:"shardchannel",type:"string",optional:!0,multiple:!0}],reply:{description:"the number of subscribers per shard channel, each even element (including 0th) is channel name, each odd element is the number of subscribers",type:"array"}},{id:"PUNSUBSCRIBE",group:"pubsub",since:"2.0.0",arity:-1,summary:"Stops listening to messages published to channels that match one or more patterns.",flags:["PUBSUB","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"pattern",type:"pattern",optional:!0,multiple:!0}]},{id:"QUIT",group:"connection",since:"1.0.0",arity:-1,summary:"Closes the connection.",flags:["ALLOW_BUSY","NOSCRIPT","LOADING","STALE","FAST","NO_AUTH"],arguments:[],reply:{const:"OK"}},{id:"RANDOMKEY",group:"generic",since:"1.0.0",arity:1,summary:"Returns a random key name from the database.",flags:["READONLY","TOUCHES_ARBITRARY_KEYS"],arguments:[],reply:{oneOf:[{description:"when the database is empty",type:"null"},{description:"random key in db",type:"string"}]}},{id:"READONLY",group:"cluster",since:"3.0.0",arity:1,summary:"Enables read-only queries for a connection to a Redis Cluster replica node.",flags:["FAST","LOADING","STALE"],arguments:[],reply:{const:"OK"}},{id:"READWRITE",group:"cluster",since:"3.0.0",arity:1,summary:"Enables read-write queries for a connection to a Reids Cluster replica node.",flags:["FAST","LOADING","STALE"],arguments:[],reply:{const:"OK"}},{id:"RENAME",group:"generic",since:"1.0.0",arity:3,summary:"Renames a key and overwrites the destination.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"newkey",type:"key"}],reply:{const:"OK"}},{id:"RENAMENX",group:"generic",since:"1.0.0",arity:3,summary:"Renames a key only when the target key name doesn't exist.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"newkey",type:"key"}],reply:{oneOf:[{description:"key was renamed to newkey",const:1},{description:"new key already exists",const:0}]}},{id:"REPLCONF",group:"server",since:"3.0.0",arity:-1,summary:"An internal command for configuring the replication stream.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","ALLOW_BUSY"],arguments:[],reply:{const:"OK"}},{id:"REPLICAOF",group:"server",since:"5.0.0",arity:3,summary:"Configures a server as replica of another, or promotes it to a master.",flags:["NO_ASYNC_LOADING","ADMIN","NOSCRIPT","STALE"],arguments:[{name:"args",type:"oneof",arguments:[{name:"host-port",type:"block",arguments:[{name:"host",type:"string"},{name:"port",type:"integer"}]},{name:"no-one",type:"block",arguments:[{name:"no",type:"pure-token",token:"NO"},{name:"one",type:"pure-token",token:"ONE"}]}]}],reply:{description:"replicaOf status",type:"string",pattern:"OK*"}},{id:"RESET",group:"connection",since:"6.2.0",arity:1,summary:"Resets the connection.",flags:["NOSCRIPT","LOADING","STALE","FAST","NO_AUTH","ALLOW_BUSY"],arguments:[],reply:{const:"RESET"}},{id:"RESTORE",group:"generic",since:"2.6.0",arity:-4,summary:"Creates a key from the serialized representation of a value.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"ttl",type:"integer"},{name:"serialized-value",type:"string"},{name:"replace",type:"pure-token",optional:!0,token:"REPLACE"},{name:"absttl",type:"pure-token",optional:!0,token:"ABSTTL"},{name:"seconds",type:"integer",optional:!0,token:"IDLETIME"},{name:"frequency",type:"integer",optional:!0,token:"FREQ"}],reply:{const:"OK"}},{id:"RESTORE-ASKING",group:"server",since:"3.0.0",arity:-4,summary:"An internal command for migrating keys in a cluster.",flags:["WRITE","DENYOOM","ASKING"],arguments:[{name:"key",type:"key"},{name:"ttl",type:"integer"},{name:"serialized-value",type:"string"},{name:"replace",type:"pure-token",optional:!0,token:"REPLACE"},{name:"absttl",type:"pure-token",optional:!0,token:"ABSTTL"},{name:"seconds",type:"integer",optional:!0,token:"IDLETIME"},{name:"frequency",type:"integer",optional:!0,token:"FREQ"}],reply:{const:"OK"}},{id:"ROLE",group:"server",since:"2.8.12",arity:1,summary:"Returns the replication role.",flags:["NOSCRIPT","LOADING","STALE","FAST","SENTINEL"],arguments:[],reply:{oneOf:[{type:"array",minItems:3,maxItems:3,items:[{const:"master"},{description:"current replication master offset",type:"integer"},{description:"connected replicas",type:"array",items:{type:"array",minItems:3,maxItems:3,items:[{description:"replica ip",type:"string"},{description:"replica port",type:"string"},{description:"last acknowledged replication offset",type:"string"}]}}]},{type:"array",minItems:5,maxItems:5,items:[{const:"slave"},{description:"ip of master",type:"string"},{description:"port number of master",type:"integer"},{description:"state of the replication from the point of view of the master",oneOf:[{description:"the instance is in handshake with its master",const:"handshake"},{description:"the instance in not active",const:"none"},{description:"the instance needs to connect to its master",const:"connect"},{description:"the master-replica connection is in progress",const:"connecting"},{description:"the master and replica are trying to perform the synchronization",const:"sync"},{description:"the replica is online",const:"connected"},{description:"instance state is unknown",const:"unknown"}]},{description:"the amount of data received from the replica so far in terms of master replication offset",type:"integer"}]},{type:"array",minItems:2,maxItems:2,items:[{const:"sentinel"},{description:"list of master names monitored by this sentinel instance",type:"array",items:{type:"string"}}]}]}},{id:"RPOP",group:"list",since:"1.0.0",arity:-2,summary:"Returns and removes the last elements of a list. Deletes the list if the last element was popped.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"count",type:"integer",optional:!0}],reply:{oneOf:[{type:"null",description:"Key does not exist."},{type:"string",description:"When 'COUNT' was not given, the value of the last element."},{type:"array",description:"When 'COUNT' was given, list of popped elements.",items:{type:"string"}}]}},{id:"RPOPLPUSH",group:"list",since:"1.2.0",arity:3,summary:"Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped.",flags:["WRITE","DENYOOM"],arguments:[{name:"source",type:"key"},{name:"destination",type:"key"}],reply:{oneOf:[{type:"string",description:"The element being popped and pushed."},{type:"null",description:"Source list is empty."}]}},{id:"RPUSH",group:"list",since:"1.0.0",arity:-3,summary:"Appends one or more elements to a list. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"element",type:"string",multiple:!0}],reply:{description:"Length of the list after the push operations.",type:"integer",minimum:1}},{id:"RPUSHX",group:"list",since:"2.2.0",arity:-3,summary:"Appends an element to a list only when the list exists.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"element",type:"string",multiple:!0}],reply:{type:"integer",description:"Length of the list after the push operation.",minimum:0}},{id:"SADD",group:"set",since:"1.0.0",arity:-3,summary:"Adds one or more members to a set. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string",multiple:!0}],reply:{description:"Number of elements that were added to the set, not including all the elements already present in the set.",type:"integer"}},{id:"SAVE",group:"server",since:"1.0.0",arity:1,summary:"Synchronously saves the database(s) to disk.",flags:["NO_ASYNC_LOADING","ADMIN","NOSCRIPT","NO_MULTI"],arguments:[],reply:{const:"OK"}},{id:"SCAN",group:"generic",since:"2.8.0",arity:-2,summary:"Iterates over the key names in the database.",flags:["READONLY","TOUCHES_ARBITRARY_KEYS"],arguments:[{name:"cursor",type:"integer"},{name:"pattern",type:"pattern",optional:!0,token:"MATCH"},{name:"count",type:"integer",optional:!0,token:"COUNT"},{name:"type",type:"string",optional:!0,token:"TYPE"}],reply:{description:"cursor and scan response in array form",type:"array",minItems:2,maxItems:2,items:[{description:"cursor",type:"string"},{description:"list of keys",type:"array",items:{type:"string"}}]}},{id:"SCARD",group:"set",since:"1.0.0",arity:2,summary:"Returns the number of members in a set.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{description:"The cardinality (number of elements) of the set, or 0 if key does not exist.",type:"integer",minimum:0}},{id:"SCRIPT",group:"scripting",since:"2.6.0",arity:-2,summary:"A container for Lua scripts management commands.",flags:[],arguments:[]},{id:"SCRIPT DEBUG",group:"scripting",since:"3.2.0",arity:3,summary:"Sets the debug mode of server-side Lua scripts.",flags:["NOSCRIPT"],arguments:[{name:"mode",type:"oneof",arguments:[{name:"yes",type:"pure-token",token:"YES"},{name:"sync",type:"pure-token",token:"SYNC"},{name:"no",type:"pure-token",token:"NO"}]}],reply:{const:"OK"}},{id:"SCRIPT EXISTS",group:"scripting",since:"2.6.0",arity:-3,summary:"Determines whether server-side Lua scripts exist in the script cache.",flags:["NOSCRIPT"],arguments:[{name:"sha1",type:"string",multiple:!0}],reply:{description:"An array of integers that correspond to the specified SHA1 digest arguments.",type:"array",items:{oneOf:[{description:"sha1 hash exists in script cache",const:1},{description:"sha1 hash does not exist in script cache",const:0}]}}},{id:"SCRIPT FLUSH",group:"scripting",since:"2.6.0",arity:-2,summary:"Removes all server-side Lua scripts from the script cache.",flags:["NOSCRIPT"],arguments:[{name:"flush-type",type:"oneof",optional:!0,arguments:[{name:"async",type:"pure-token",token:"ASYNC"},{name:"sync",type:"pure-token",token:"SYNC"}]}],reply:{const:"OK"}},{id:"SCRIPT HELP",group:"scripting",since:"5.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"SCRIPT KILL",group:"scripting",since:"2.6.0",arity:2,summary:"Terminates a server-side Lua script during execution.",flags:["NOSCRIPT","ALLOW_BUSY"],arguments:[],reply:{const:"OK"}},{id:"SCRIPT LOAD",group:"scripting",since:"2.6.0",arity:3,summary:"Loads a server-side Lua script to the script cache.",flags:["NOSCRIPT","STALE"],arguments:[{name:"script",type:"string"}],reply:{description:"The SHA1 digest of the script added into the script cache",type:"string"}},{id:"SDIFF",group:"set",since:"1.0.0",arity:-2,summary:"Returns the difference of multiple sets.",flags:["READONLY"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{type:"array",description:"List with the members of the resulting set.",uniqueItems:!0,items:{type:"string"}}},{id:"SDIFFSTORE",group:"set",since:"1.0.0",arity:-3,summary:"Stores the difference of multiple sets in a key.",flags:["WRITE","DENYOOM"],arguments:[{name:"destination",type:"key"},{name:"key",type:"key",multiple:!0}],reply:{description:"Number of the elements in the resulting set.",type:"integer",minimum:0}},{id:"SELECT",group:"connection",since:"1.0.0",arity:2,summary:"Changes the selected database.",flags:["LOADING","STALE","FAST"],arguments:[{name:"index",type:"integer"}],reply:{const:"OK"}},{id:"SENTINEL",group:"sentinel",since:"2.8.4",arity:-2,summary:"A container for Redis Sentinel commands.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[]},{id:"SENTINEL CKQUORUM",group:"sentinel",since:"2.8.4",arity:3,summary:"Checks for a Redis Sentinel quorum.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"}],reply:{type:"string",description:"Returns OK if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the majority needed to authorize the failover.",pattern:"OK"}},{id:"SENTINEL CONFIG",group:"sentinel",since:"6.2.0",arity:-4,summary:"Configures Redis Sentinel.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"action",type:"oneof",arguments:[{name:"set",type:"block",multiple:!0,token:"SET",arguments:[{name:"parameter",type:"string"},{name:"value",type:"string"}]},{name:"parameter",type:"string",multiple:!0,token:"GET"}]}],reply:{oneOf:[{type:"object",description:"When 'SENTINEL-CONFIG GET' is called, returns a map.",properties:{"resolve-hostnames":{oneOf:[{const:"yes"},{const:"no"}]},"announce-hostnames":{oneOf:[{const:"yes"},{const:"no"}]},"announce-ip":{type:"string"},"announce-port":{type:"string"},"sentinel-user":{type:"string"},"sentinel-pass":{type:"string"},loglevel:{oneOf:[{const:"debug"},{const:"verbose"},{const:"notice"},{const:"warning"},{const:"nothing"},{const:"unknown"}]}},additionalProperties:!1},{const:"OK",description:"When 'SENTINEL-CONFIG SET' is called, returns OK on success."}]}},{id:"SENTINEL DEBUG",group:"sentinel",since:"7.0.0",arity:-2,summary:"Lists or updates the current configurable parameters of Redis Sentinel.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"data",type:"block",optional:!0,multiple:!0,arguments:[{name:"parameter",type:"string"},{name:"value",type:"string"}]}],reply:{oneOf:[{description:"The configuration update was successful.",const:"OK"},{description:"List of configurable time parameters and their values (milliseconds).",type:"object",additionalProperties:{type:"string"}}]}},{id:"SENTINEL FAILOVER",group:"sentinel",since:"2.8.4",arity:3,summary:"Forces a Redis Sentinel failover.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"}],reply:{const:"OK",description:"Force a fail over as if the master was not reachable, and without asking for agreement to other Sentinels."}},{id:"SENTINEL FLUSHCONFIG",group:"sentinel",since:"2.8.4",arity:2,summary:"Rewrites the Redis Sentinel configuration file.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[],reply:{const:"OK",description:"Force Sentinel to rewrite its configuration on disk, including the current Sentinel state."}},{id:"SENTINEL GET-MASTER-ADDR-BY-NAME",group:"sentinel",since:"2.8.4",arity:3,summary:"Returns the port and address of a master Redis instance.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"}],reply:{type:"array",minItems:2,maxItems:2,items:[{type:"string",description:"IP addr or hostname."},{type:"string",description:"Port.",pattern:"[0-9]+"}]}},{id:"SENTINEL HELP",group:"sentinel",since:"6.2.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE","SENTINEL","ONLY_SENTINEL"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"SENTINEL INFO-CACHE",group:"sentinel",since:"3.2.0",arity:-3,summary:"Returns the cached `INFO` replies from the deployment's instances.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"nodename",type:"string",multiple:!0}],reply:{type:"array",description:"This is actually a map, the odd entries are a master name, and the even entries are the last cached INFO output from that master and all its replicas.",minItems:0,maxItems:4294967295,items:[{oneOf:[{type:"string",description:"The master name."},{type:"array",description:"This is an array of pairs, the odd entries are the INFO age, and the even entries are the cached INFO string. The first pair belong to the master and the rest are its replicas.",minItems:2,maxItems:2,items:[{description:"The number of milliseconds since when the INFO was cached.",type:"integer"},{description:"The cached INFO string or null.",oneOf:[{description:"The cached INFO string.",type:"string"},{description:"No cached INFO string.",type:"null"}]}]}]}]}},{id:"SENTINEL IS-MASTER-DOWN-BY-ADDR",group:"sentinel",since:"2.8.4",arity:6,summary:"Determines whether a master Redis instance is down.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"ip",type:"string"},{name:"port",type:"integer"},{name:"current-epoch",type:"integer"},{name:"runid",type:"string"}],reply:{type:"array",minItems:3,maxItems:3,items:[{oneOf:[{const:0,description:"Master is up."},{const:1,description:"Master is down."}]},{type:"string",description:"Sentinel address."},{type:"integer",description:"Port."}]}},{id:"SENTINEL MASTER",group:"sentinel",since:"2.8.4",arity:3,summary:"Returns the state of a master Redis instance.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"}],reply:{type:"object",description:"The state and info of the specified master.",additionalProperties:{type:"string"}}},{id:"SENTINEL MASTERS",group:"sentinel",since:"2.8.4",arity:2,summary:"Returns a list of monitored Redis masters.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[],reply:{type:"array",description:"List of monitored Redis masters, and their state.",items:{type:"object",additionalProperties:{type:"string"}}}},{id:"SENTINEL MONITOR",group:"sentinel",since:"2.8.4",arity:6,summary:"Starts monitoring.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"name",type:"string"},{name:"ip",type:"string"},{name:"port",type:"integer"},{name:"quorum",type:"integer"}],reply:{const:"OK"}},{id:"SENTINEL MYID",group:"sentinel",since:"6.2.0",arity:2,summary:"Returns the Redis Sentinel instance ID.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[],reply:{description:"Node ID of the sentinel instance.",type:"string"}},{id:"SENTINEL PENDING-SCRIPTS",group:"sentinel",since:"2.8.4",arity:2,summary:"Returns information about pending scripts for Redis Sentinel.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[],reply:{type:"array",description:"List of pending scripts.",items:{type:"object",additionalProperties:!1,properties:{argv:{type:"array",description:"Script arguments.",items:{type:"string"}},flags:{type:"string",description:"Script flags."},pid:{type:"string",description:"Script pid."},"run-time":{type:"string",description:"Script run-time."},"run-delay":{type:"string",description:"Script run-delay."},"retry-num":{type:"string",description:"Number of times we tried to execute the script."}}}}},{id:"SENTINEL REMOVE",group:"sentinel",since:"2.8.4",arity:3,summary:"Stops monitoring.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"}],reply:{const:"OK"}},{id:"SENTINEL REPLICAS",group:"sentinel",since:"5.0.0",arity:3,summary:"Returns a list of the monitored Redis replicas.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"}],reply:{type:"array",description:"List of replicas for this master, and their state.",items:{type:"object",additionalProperties:{type:"string"}}}},{id:"SENTINEL RESET",group:"sentinel",since:"2.8.4",arity:3,summary:"Resets Redis masters by name matching a pattern.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"pattern",type:"pattern"}],reply:{type:"integer",description:"The number of masters that were reset."}},{id:"SENTINEL SENTINELS",group:"sentinel",since:"2.8.4",arity:3,summary:"Returns a list of Sentinel instances.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"}],reply:{type:"array",description:"List of sentinel instances, and their state.",items:{type:"object",additionalProperties:{type:"string"}}}},{id:"SENTINEL SET",group:"sentinel",since:"2.8.4",arity:-5,summary:"Changes the configuration of a monitored Redis master.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"},{name:"data",type:"block",multiple:!0,arguments:[{name:"option",type:"string"},{name:"value",type:"string"}]}],reply:{const:"OK"}},{id:"SENTINEL SIMULATE-FAILURE",group:"sentinel",since:"3.2.0",arity:-3,summary:"Simulates failover scenarios.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"mode",type:"oneof",optional:!0,multiple:!0,arguments:[{name:"crash-after-election",type:"pure-token"},{name:"crash-after-promotion",type:"pure-token"},{name:"help",type:"pure-token"}]}],reply:{oneOf:[{description:"The simulated flag was set.",const:"OK"},{description:"Supported simulates flags. Returned in case `HELP` was used.",type:"array",items:{type:"string"}}]}},{id:"SENTINEL SLAVES",group:"sentinel",since:"2.8.0",arity:3,summary:"Returns a list of the monitored replicas.",flags:["ADMIN","SENTINEL","ONLY_SENTINEL"],arguments:[{name:"master-name",type:"string"}],reply:{type:"array",description:"List of monitored replicas, and their state.",items:{type:"object",additionalProperties:{type:"string"}}}},{id:"SET",group:"string",since:"1.0.0",arity:-3,summary:"Sets the string value of a key, ignoring its type. The key is created if it doesn't exist.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"value",type:"string"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"}]},{name:"get",type:"pure-token",optional:!0,token:"GET"},{name:"expiration",type:"oneof",optional:!0,arguments:[{name:"seconds",type:"integer",token:"EX"},{name:"milliseconds",type:"integer",token:"PX"},{name:"unix-time-seconds",type:"unix-time",token:"EXAT"},{name:"unix-time-milliseconds",type:"unix-time",token:"PXAT"},{name:"keepttl",type:"pure-token",token:"KEEPTTL"}]}],reply:{anyOf:[{description:"`GET` not given: Operation was aborted (conflict with one of the `XX`/`NX` options).",type:"null"},{description:"`GET` not given: The key was set.",const:"OK"},{description:"`GET` given: The key didn't exist before the `SET`",type:"null"},{description:"`GET` given: The previous value of the key",type:"string"}]}},{id:"SETBIT",group:"bitmap",since:"2.2.0",arity:4,summary:"Sets or clears the bit at offset of the string value. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"offset",type:"integer"},{name:"value",type:"integer"}],reply:{description:"The original bit value stored at offset.",oneOf:[{const:0},{const:1}]}},{id:"SETEX",group:"string",since:"2.0.0",arity:4,summary:"Sets the string value and expiration time of a key. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"seconds",type:"integer"},{name:"value",type:"string"}],reply:{const:"OK"}},{id:"SETNX",group:"string",since:"1.0.0",arity:3,summary:"Set the string value of a key only when the key doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"value",type:"string"}],reply:{oneOf:[{description:"The key was set.",const:0},{description:"The key was not set.",const:1}]}},{id:"SETRANGE",group:"string",since:"2.2.0",arity:4,summary:"Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"offset",type:"integer"},{name:"value",type:"string"}],reply:{description:"Length of the string after it was modified by the command.",type:"integer",minimum:0}},{id:"SHUTDOWN",group:"server",since:"1.0.0",arity:-1,summary:"Synchronously saves the database(s) to disk and shuts down the Redis server.",flags:["ADMIN","NOSCRIPT","LOADING","STALE","NO_MULTI","SENTINEL","ALLOW_BUSY"],arguments:[{name:"save-selector",type:"oneof",optional:!0,arguments:[{name:"nosave",type:"pure-token",token:"NOSAVE"},{name:"save",type:"pure-token",token:"SAVE"}]},{name:"now",type:"pure-token",optional:!0,token:"NOW"},{name:"force",type:"pure-token",optional:!0,token:"FORCE"},{name:"abort",type:"pure-token",optional:!0,token:"ABORT"}],reply:{description:"OK if ABORT was specified and shutdown was aborted. On successful shutdown, nothing is returned since the server quits and the connection is closed. On failure, an error is returned.",const:"OK"}},{id:"SINTER",group:"set",since:"1.0.0",arity:-2,summary:"Returns the intersect of multiple sets.",flags:["READONLY"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{type:"array",description:"List with the members of the resulting set.",uniqueItems:!0,items:{type:"string"}}},{id:"SINTERCARD",group:"set",since:"7.0.0",arity:-3,summary:"Returns the number of members of the intersect of multiple sets.",flags:["READONLY"],arguments:[{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"limit",type:"integer",optional:!0,token:"LIMIT"}],reply:{description:"Number of the elements in the resulting intersection.",type:"integer",minimum:0}},{id:"SINTERSTORE",group:"set",since:"1.0.0",arity:-3,summary:"Stores the intersect of multiple sets in a key.",flags:["WRITE","DENYOOM"],arguments:[{name:"destination",type:"key"},{name:"key",type:"key",multiple:!0}],reply:{description:"Number of the elements in the result set.",type:"integer",minimum:0}},{id:"SISMEMBER",group:"set",since:"1.0.0",arity:3,summary:"Determines whether a member belongs to a set.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string"}],reply:{oneOf:[{const:0,description:"The element is not a member of the set, or the key does not exist."},{const:1,description:"The element is a member of the set."}]}},{id:"SLAVEOF",group:"server",since:"1.0.0",arity:3,summary:"Sets a Redis server as a replica of another, or promotes it to being a master.",flags:["NO_ASYNC_LOADING","ADMIN","NOSCRIPT","STALE"],arguments:[{name:"args",type:"oneof",arguments:[{name:"host-port",type:"block",arguments:[{name:"host",type:"string"},{name:"port",type:"integer"}]},{name:"no-one",type:"block",arguments:[{name:"no",type:"pure-token",token:"NO"},{name:"one",type:"pure-token",token:"ONE"}]}]}],reply:{description:"slaveOf status",type:"string",pattern:"OK*"}},{id:"SLOWLOG",group:"server",since:"2.2.12",arity:-2,summary:"A container for slow log commands.",flags:[],arguments:[]},{id:"SLOWLOG GET",group:"server",since:"2.2.12",arity:-2,summary:"Returns the slow log's entries.",flags:["ADMIN","LOADING","STALE"],arguments:[{name:"count",type:"integer",optional:!0}],reply:{type:"array",description:"Entries from the slow log in chronological order.",uniqueItems:!0,items:{type:"array",minItems:6,maxItems:6,items:[{type:"integer",description:"Slow log entry ID."},{type:"integer",description:"The unix timestamp at which the logged command was processed.",minimum:0},{type:"integer",description:"The amount of time needed for its execution, in microseconds.",minimum:0},{type:"array",description:"The arguments of the command.",items:{type:"string"}},{type:"string",description:"Client IP address and port."},{type:"string",description:"Client name if set via the CLIENT SETNAME command."}]}}},{id:"SLOWLOG HELP",group:"server",since:"6.2.0",arity:2,summary:"Show helpful text about the different subcommands",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"SLOWLOG LEN",group:"server",since:"2.2.12",arity:2,summary:"Returns the number of entries in the slow log.",flags:["ADMIN","LOADING","STALE"],arguments:[],reply:{type:"integer",description:"Number of entries in the slow log.",minimum:0}},{id:"SLOWLOG RESET",group:"server",since:"2.2.12",arity:2,summary:"Clears all entries from the slow log.",flags:["ADMIN","LOADING","STALE"],arguments:[],reply:{const:"OK"}},{id:"SMEMBERS",group:"set",since:"1.0.0",arity:2,summary:"Returns all members of a set.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{type:"array",description:"All elements of the set.",uniqueItems:!0,items:{type:"string"}}},{id:"SMISMEMBER",group:"set",since:"6.2.0",arity:-3,summary:"Determines whether multiple members belong to a set.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string",multiple:!0}],reply:{type:"array",description:"List representing the membership of the given elements, in the same order as they are requested.",minItems:1,items:{oneOf:[{const:0,description:"Not a member of the set or the key does not exist."},{const:1,description:"A member of the set."}]}}},{id:"SMOVE",group:"set",since:"1.0.0",arity:4,summary:"Moves a member from one set to another.",flags:["WRITE","FAST"],arguments:[{name:"source",type:"key"},{name:"destination",type:"key"},{name:"member",type:"string"}],reply:{oneOf:[{const:1,description:"Element is moved."},{const:0,description:"The element is not a member of source and no operation was performed."}]}},{id:"SORT",group:"generic",since:"1.0.0",arity:-2,summary:"Sorts the elements in a list, a set, or a sorted set, optionally storing the result.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"by-pattern",type:"pattern",optional:!0,token:"BY"},{name:"limit",type:"block",optional:!0,token:"LIMIT",arguments:[{name:"offset",type:"integer"},{name:"count",type:"integer"}]},{name:"get-pattern",type:"pattern",optional:!0,multiple:!0,token:"GET"},{name:"order",type:"oneof",optional:!0,arguments:[{name:"asc",type:"pure-token",token:"ASC"},{name:"desc",type:"pure-token",token:"DESC"}]},{name:"sorting",type:"pure-token",optional:!0,token:"ALPHA"},{name:"destination",type:"key",optional:!0,token:"STORE"}],reply:{oneOf:[{description:"when the store option is specified the command returns the number of sorted elements in the destination list",type:"integer",minimum:0},{description:"when not passing the store option the command returns a list of sorted elements",type:"array",items:{oneOf:[{type:"string"},{description:"GET option is specified, but no object was found",type:"null"}]}}]}},{id:"SORT_RO",group:"generic",since:"7.0.0",arity:-2,summary:"Returns the sorted elements of a list, a set, or a sorted set.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"by-pattern",type:"pattern",optional:!0,token:"BY"},{name:"limit",type:"block",optional:!0,token:"LIMIT",arguments:[{name:"offset",type:"integer"},{name:"count",type:"integer"}]},{name:"get-pattern",type:"pattern",optional:!0,multiple:!0,token:"GET"},{name:"order",type:"oneof",optional:!0,arguments:[{name:"asc",type:"pure-token",token:"ASC"},{name:"desc",type:"pure-token",token:"DESC"}]},{name:"sorting",type:"pure-token",optional:!0,token:"ALPHA"}],reply:{description:"a list of sorted elements",type:"array",items:{oneOf:[{type:"string"},{description:"GET option is specified, but no object was found",type:"null"}]}}},{id:"SPOP",group:"set",since:"1.0.0",arity:-2,summary:"Returns one or more random members from a set after removing them. Deletes the set if the last member was popped.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"count",type:"integer",optional:!0}],reply:{oneOf:[{type:"null",description:"The key does not exist."},{type:"string",description:"The removed member when 'COUNT' is not given."},{type:"array",description:"List to the removed members when 'COUNT' is given.",uniqueItems:!0,items:{type:"string"}}]}},{id:"SPUBLISH",group:"pubsub",since:"7.0.0",arity:3,summary:"Post a message to a shard channel",flags:["PUBSUB","LOADING","STALE","FAST","MAY_REPLICATE"],arguments:[{name:"shardchannel",type:"string"},{name:"message",type:"string"}],reply:{description:"the number of clients that received the message. Note that in a Redis Cluster, only clients that are connected to the same node as the publishing client are included in the count",type:"integer",minimum:0}},{id:"SRANDMEMBER",group:"set",since:"1.0.0",arity:-2,summary:"Get one or multiple random members from a set",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"count",type:"integer",optional:!0}],reply:{oneOf:[{description:"In case `count` is not given and key doesn't exist",type:"null"},{description:"In case `count` is not given, randomly selected element",type:"string"},{description:"In case `count` is given, an array of elements",type:"array",items:{type:"string"},minItems:1},{description:"In case `count` is given and key doesn't exist",type:"array",maxItems:0}]}},{id:"SREM",group:"set",since:"1.0.0",arity:-3,summary:"Removes one or more members from a set. Deletes the set if the last member was removed.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string",multiple:!0}],reply:{description:"Number of members that were removed from the set, not including non existing members.",type:"integer",minimum:0}},{id:"SSCAN",group:"set",since:"2.8.0",arity:-3,summary:"Iterates over members of a set.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"cursor",type:"integer"},{name:"pattern",type:"pattern",optional:!0,token:"MATCH"},{name:"count",type:"integer",optional:!0,token:"COUNT"}],reply:{description:"cursor and scan response in array form",type:"array",minItems:2,maxItems:2,items:[{description:"cursor",type:"string"},{description:"list of set members",type:"array",items:{type:"string"}}]}},{id:"SSUBSCRIBE",group:"pubsub",since:"7.0.0",arity:-2,summary:"Listens for messages published to shard channels.",flags:["PUBSUB","NOSCRIPT","LOADING","STALE"],arguments:[{name:"shardchannel",type:"string",multiple:!0}]},{id:"STRLEN",group:"string",since:"2.2.0",arity:2,summary:"Returns the length of a string value.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{description:"The length of the string value stored at key, or 0 when key does not exist.",type:"integer",minimum:0}},{id:"SUBSCRIBE",group:"pubsub",since:"2.0.0",arity:-2,summary:"Listens for messages published to channels.",flags:["PUBSUB","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"channel",type:"string",multiple:!0}]},{id:"SUBSTR",group:"string",since:"1.0.0",arity:4,summary:"Returns a substring from a string value.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"start",type:"integer"},{name:"end",type:"integer"}],reply:{type:"string",description:"The substring of the string value stored at key, determined by the offsets start and end (both are inclusive)."}},{id:"SUNION",group:"set",since:"1.0.0",arity:-2,summary:"Returns the union of multiple sets.",flags:["READONLY"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{type:"array",description:"List with the members of the resulting set.",uniqueItems:!0,items:{type:"string"}}},{id:"SUNIONSTORE",group:"set",since:"1.0.0",arity:-3,summary:"Stores the union of multiple sets in a key.",flags:["WRITE","DENYOOM"],arguments:[{name:"destination",type:"key"},{name:"key",type:"key",multiple:!0}],reply:{type:"integer",description:"Number of the elements in the resulting set.",minimum:0}},{id:"SUNSUBSCRIBE",group:"pubsub",since:"7.0.0",arity:-1,summary:"Stops listening to messages posted to shard channels.",flags:["PUBSUB","NOSCRIPT","LOADING","STALE"],arguments:[{name:"shardchannel",type:"string",optional:!0,multiple:!0}]},{id:"SWAPDB",group:"server",since:"4.0.0",arity:3,summary:"Swaps two Redis databases.",flags:["WRITE","FAST"],arguments:[{name:"index1",type:"integer"},{name:"index2",type:"integer"}],reply:{const:"OK"}},{id:"SYNC",group:"server",since:"1.0.0",arity:1,summary:"An internal command used in replication.",flags:["NO_ASYNC_LOADING","ADMIN","NO_MULTI","NOSCRIPT"],arguments:[]},{id:"TIME",group:"server",since:"2.6.0",arity:1,summary:"Returns the server time.",flags:["LOADING","STALE","FAST"],arguments:[],reply:{type:"array",description:"Array containing two elements: Unix time in seconds and microseconds.",minItems:2,maxItems:2,items:{type:"string",pattern:"[0-9]+"}}},{id:"TOUCH",group:"generic",since:"3.2.1",arity:-2,summary:"Returns the number of existing keys out of those specified after updating the time they were last accessed.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{description:"the number of touched keys",type:"integer",minimum:0}},{id:"TTL",group:"generic",since:"1.0.0",arity:2,summary:"Returns the expiration time in seconds of a key.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{description:"TTL in seconds.",type:"integer",minimum:0},{description:"The key exists but has no associated expire.",const:-1},{description:"The key does not exist.",const:-2}]}},{id:"TYPE",group:"generic",since:"1.0.0",arity:2,summary:"Determines the type of value stored at a key.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{oneOf:[{description:"Key doesn't exist",type:"null"},{description:"Type of the key",type:"string"}]}},{id:"UNLINK",group:"generic",since:"4.0.0",arity:-2,summary:"Asynchronously deletes one or more keys.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{description:"the number of keys that were unlinked",type:"integer",minimum:0}},{id:"UNSUBSCRIBE",group:"pubsub",since:"2.0.0",arity:-1,summary:"Stops listening to messages posted to channels.",flags:["PUBSUB","NOSCRIPT","LOADING","STALE","SENTINEL"],arguments:[{name:"channel",type:"string",optional:!0,multiple:!0}]},{id:"UNWATCH",group:"transactions",since:"2.2.0",arity:1,summary:"Forgets about watched keys of a transaction.",flags:["NOSCRIPT","LOADING","STALE","FAST","ALLOW_BUSY"],arguments:[],reply:{const:"OK"}},{id:"WAIT",group:"generic",since:"3.0.0",arity:3,summary:"Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed.",flags:["BLOCKING"],arguments:[{name:"numreplicas",type:"integer"},{name:"timeout",type:"integer"}],reply:{type:"integer",description:"The number of replicas reached by all the writes performed in the context of the current connection.",minimum:0}},{id:"WAITAOF",group:"generic",since:"7.2.0",arity:4,summary:"Blocks until all of the preceding write commands sent by the connection are written to the append-only file of the master and/or replicas.",flags:["BLOCKING"],arguments:[{name:"numlocal",type:"integer"},{name:"numreplicas",type:"integer"},{name:"timeout",type:"integer"}],reply:{type:"array",description:"Number of local and remote AOF files in sync.",minItems:2,maxItems:2,items:[{description:"Number of local AOF files.",type:"integer",minimum:0},{description:"Number of replica AOF files.",type:"number",minimum:0}]}},{id:"WATCH",group:"transactions",since:"2.2.0",arity:-2,summary:"Monitors changes to keys to determine the execution of a transaction.",flags:["NOSCRIPT","LOADING","STALE","FAST","ALLOW_BUSY"],arguments:[{name:"key",type:"key",multiple:!0}],reply:{const:"OK"}},{id:"XACK",group:"stream",since:"5.0.0",arity:-4,summary:"Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"},{name:"ID",type:"string",multiple:!0}],reply:{description:"The command returns the number of messages successfully acknowledged. Certain message IDs may no longer be part of the PEL (for example because they have already been acknowledged), and XACK will not count them as successfully acknowledged.",type:"integer",minimum:0}},{id:"XADD",group:"stream",since:"5.0.0",arity:-5,summary:"Appends a new message to a stream. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"nomkstream",type:"pure-token",optional:!0,token:"NOMKSTREAM"},{name:"trim",type:"block",optional:!0,arguments:[{name:"strategy",type:"oneof",arguments:[{name:"maxlen",type:"pure-token",token:"MAXLEN"},{name:"minid",type:"pure-token",token:"MINID"}]},{name:"operator",type:"oneof",optional:!0,arguments:[{name:"equal",type:"pure-token",token:"="},{name:"approximately",type:"pure-token",token:"~"}]},{name:"threshold",type:"string"},{name:"count",type:"integer",optional:!0,token:"LIMIT"}]},{name:"id-selector",type:"oneof",arguments:[{name:"auto-id",type:"pure-token",token:"*"},{name:"id",type:"string"}]},{name:"data",type:"block",multiple:!0,arguments:[{name:"field",type:"string"},{name:"value",type:"string"}]}],reply:{oneOf:[{description:"The ID of the added entry. The ID is the one auto-generated if * is passed as ID argument, otherwise the command just returns the same ID specified by the user during insertion.",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"The NOMKSTREAM option is given and the key doesn't exist.",type:"null"}]}},{id:"XAUTOCLAIM",group:"stream",since:"6.2.0",arity:-6,summary:"Changes, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"},{name:"consumer",type:"string"},{name:"min-idle-time",type:"string"},{name:"start",type:"string"},{name:"count",type:"integer",optional:!0,token:"COUNT"},{name:"justid",type:"pure-token",optional:!0,token:"JUSTID"}],reply:{anyOf:[{description:"Claimed stream entries (with data, if `JUSTID` was not given).",type:"array",minItems:3,maxItems:3,items:[{description:"Cursor for next call.",type:"string",pattern:"[0-9]+-[0-9]+"},{type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{description:"Entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Data",type:"array",items:{type:"string"}}]}},{description:"Entry IDs which no longer exist in the stream, and were deleted from the PEL in which they were found.",type:"array",items:{type:"string",pattern:"[0-9]+-[0-9]+"}}]},{description:"Claimed stream entries (without data, if `JUSTID` was given).",type:"array",minItems:3,maxItems:3,items:[{description:"Cursor for next call.",type:"string",pattern:"[0-9]+-[0-9]+"},{type:"array",uniqueItems:!0,items:{type:"string",pattern:"[0-9]+-[0-9]+"}},{description:"Entry IDs which no longer exist in the stream, and were deleted from the PEL in which they were found.",type:"array",items:{type:"string",pattern:"[0-9]+-[0-9]+"}}]}]}},{id:"XCLAIM",group:"stream",since:"5.0.0",arity:-6,summary:"Changes, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"},{name:"consumer",type:"string"},{name:"min-idle-time",type:"string"},{name:"ID",type:"string",multiple:!0},{name:"ms",type:"integer",optional:!0,token:"IDLE"},{name:"unix-time-milliseconds",type:"unix-time",optional:!0,token:"TIME"},{name:"count",type:"integer",optional:!0,token:"RETRYCOUNT"},{name:"force",type:"pure-token",optional:!0,token:"FORCE"},{name:"justid",type:"pure-token",optional:!0,token:"JUSTID"},{name:"lastid",type:"string",optional:!0,token:"LASTID"}],reply:{description:"Stream entries with IDs matching the specified range.",anyOf:[{description:"If JUSTID option is specified, return just an array of IDs of messages successfully claimed",type:"array",items:{description:"Entry ID",type:"string",pattern:"[0-9]+-[0-9]+"}},{description:"array of stream entries that contains each entry as an array of 2 elements, the Entry ID and the entry data itself",type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{description:"Entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Data",type:"array",items:{type:"string"}}]}}]}},{id:"XDEL",group:"stream",since:"5.0.0",arity:-3,summary:"Returns the number of messages after removing them from a stream.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"ID",type:"string",multiple:!0}],reply:{description:"The number of entries actually deleted",type:"integer",minimum:0}},{id:"XGROUP",group:"stream",since:"5.0.0",arity:-2,summary:"A container for consumer groups commands.",flags:[],arguments:[]},{id:"XGROUP CREATE",group:"stream",since:"5.0.0",arity:-5,summary:"Creates a consumer group.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"},{name:"id-selector",type:"oneof",arguments:[{name:"id",type:"string"},{name:"new-id",type:"pure-token",token:"$"}]},{name:"mkstream",type:"pure-token",optional:!0,token:"MKSTREAM"},{name:"entriesread",type:"integer",optional:!0,token:"ENTRIESREAD"}],reply:{const:"OK"}},{id:"XGROUP CREATECONSUMER",group:"stream",since:"6.2.0",arity:5,summary:"Creates a consumer in a consumer group.",flags:["WRITE","DENYOOM"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"},{name:"consumer",type:"string"}],reply:{description:"The number of created consumers (0 or 1)",oneOf:[{const:1},{const:0}]}},{id:"XGROUP DELCONSUMER",group:"stream",since:"5.0.0",arity:5,summary:"Deletes a consumer from a consumer group.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"},{name:"consumer",type:"string"}],reply:{description:"The number of pending messages that were yet associated with such a consumer",type:"integer",minimum:0}},{id:"XGROUP DESTROY",group:"stream",since:"5.0.0",arity:4,summary:"Destroys a consumer group.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"}],reply:{description:"The number of destroyed consumer groups (0 or 1)",oneOf:[{const:1},{const:0}]}},{id:"XGROUP HELP",group:"stream",since:"5.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"XGROUP SETID",group:"stream",since:"5.0.0",arity:-5,summary:"Sets the last-delivered ID of a consumer group.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"},{name:"id-selector",type:"oneof",arguments:[{name:"id",type:"string"},{name:"new-id",type:"pure-token",token:"$"}]},{name:"entriesread",type:"integer",optional:!0,token:"ENTRIESREAD"}],reply:{const:"OK"}},{id:"XINFO",group:"stream",since:"5.0.0",arity:-2,summary:"A container for stream introspection commands.",flags:[],arguments:[]},{id:"XINFO CONSUMERS",group:"stream",since:"5.0.0",arity:4,summary:"Returns a list of the consumers in a consumer group.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"}],reply:{description:"Array list of consumers",type:"array",uniqueItems:!0,items:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},pending:{type:"integer"},idle:{type:"integer"},inactive:{type:"integer"}}}}},{id:"XINFO GROUPS",group:"stream",since:"5.0.0",arity:3,summary:"Returns a list of the consumer groups of a stream.",flags:["READONLY"],arguments:[{name:"key",type:"key"}],reply:{type:"array",items:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},consumers:{type:"integer"},pending:{type:"integer"},"last-delivered-id":{type:"string",pattern:"[0-9]+-[0-9]+"},"entries-read":{oneOf:[{type:"null"},{type:"integer"}]},lag:{oneOf:[{type:"null"},{type:"integer"}]}}}}},{id:"XINFO HELP",group:"stream",since:"5.0.0",arity:2,summary:"Returns helpful text about the different subcommands.",flags:["LOADING","STALE"],arguments:[],reply:{type:"array",description:"Helpful text about subcommands.",items:{type:"string"}}},{id:"XINFO STREAM",group:"stream",since:"5.0.0",arity:-3,summary:"Returns information about a stream.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"full-block",type:"block",optional:!0,arguments:[{name:"full",type:"pure-token",token:"FULL"},{name:"count",type:"integer",optional:!0,token:"COUNT"}]}],reply:{oneOf:[{description:"Summary form, in case `FULL` was not given.",type:"object",additionalProperties:!1,properties:{length:{description:"the number of entries in the stream (see `XLEN`)",type:"integer"},"radix-tree-keys":{description:"the number of keys in the underlying radix data structure",type:"integer"},"radix-tree-nodes":{description:"the number of nodes in the underlying radix data structure",type:"integer"},"last-generated-id":{description:"the ID of the least-recently entry that was added to the stream",type:"string",pattern:"[0-9]+-[0-9]+"},"max-deleted-entry-id":{description:"the maximal entry ID that was deleted from the stream",type:"string",pattern:"[0-9]+-[0-9]+"},"recorded-first-entry-id":{description:"cached copy of the first entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},"entries-added":{description:"the count of all entries added to the stream during its lifetime",type:"integer"},groups:{description:"the number of consumer groups defined for the stream",type:"integer"},"first-entry":{description:"the first entry of the stream",oneOf:[{type:"null"},{type:"array",minItems:2,maxItems:2,items:[{description:"entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"data",type:"array",items:{type:"string"}}]}]},"last-entry":{description:"the last entry of the stream",oneOf:[{type:"null"},{type:"array",minItems:2,maxItems:2,items:[{description:"entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"data",type:"array",items:{type:"string"}}]}]}}},{description:"Extended form, in case `FULL` was given.",type:"object",additionalProperties:!1,properties:{length:{description:"the number of entries in the stream (see `XLEN`)",type:"integer"},"radix-tree-keys":{description:"the number of keys in the underlying radix data structure",type:"integer"},"radix-tree-nodes":{description:"the number of nodes in the underlying radix data structure",type:"integer"},"last-generated-id":{description:"the ID of the least-recently entry that was added to the stream",type:"string",pattern:"[0-9]+-[0-9]+"},"max-deleted-entry-id":{description:"the maximal entry ID that was deleted from the stream",type:"string",pattern:"[0-9]+-[0-9]+"},"recorded-first-entry-id":{description:"cached copy of the first entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},"entries-added":{description:"the count of all entries added to the stream during its lifetime",type:"integer"},entries:{description:"all the entries of the stream",type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{description:"entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"data",type:"array",items:{type:"string"}}]}},groups:{type:"array",items:{type:"object",additionalProperties:!1,properties:{name:{description:"group name",type:"string"},"last-delivered-id":{description:"last entry ID that was delivered to a consumer",type:"string",pattern:"[0-9]+-[0-9]+"},"entries-read":{description:"total number of entries ever read by consumers in the group",oneOf:[{type:"null"},{type:"integer"}]},lag:{description:"number of entries left to be consumed from the stream",oneOf:[{type:"null"},{type:"integer"}]},"pel-count":{description:"total number of unacknowledged entries",type:"integer"},pending:{description:"data about all of the unacknowledged entries",type:"array",items:{type:"array",minItems:4,maxItems:4,items:[{description:"Entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Consumer name",type:"string"},{description:"Delivery timestamp",type:"integer"},{description:"Delivery count",type:"integer"}]}},consumers:{description:"data about all of the consumers of the group",type:"array",items:{type:"object",additionalProperties:!1,properties:{"active-time":{type:"integer",description:"Last time this consumer was active (successful reading/claiming).",minimum:0},name:{description:"consumer name",type:"string"},"seen-time":{description:"timestamp of the last interaction attempt of the consumer",type:"integer",minimum:0},"pel-count":{description:"number of unacknowledged entries that belong to the consumer",type:"integer"},pending:{description:"data about the unacknowledged entries",type:"array",items:{type:"array",minItems:3,maxItems:3,items:[{description:"Entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Delivery timestamp",type:"integer"},{description:"Delivery count",type:"integer"}]}}}}}}}}}}]}},{id:"XLEN",group:"stream",since:"5.0.0",arity:2,summary:"Return the number of messages in a stream.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{description:"The number of entries of the stream at key",type:"integer",minimum:0}},{id:"XPENDING",group:"stream",since:"5.0.0",arity:-3,summary:"Returns the information and entries from a stream consumer group's pending entries list.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"group",type:"string"},{name:"filters",type:"block",optional:!0,arguments:[{name:"min-idle-time",type:"integer",optional:!0,token:"IDLE"},{name:"start",type:"string"},{name:"end",type:"string"},{name:"count",type:"integer"},{name:"consumer",type:"string",optional:!0}]}],reply:{oneOf:[{description:"Extended form, in case `start` was given.",type:"array",items:{type:"array",minItems:4,maxItems:4,items:[{description:"Entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Consumer name",type:"string"},{description:"Idle time",type:"integer"},{description:"Delivery count",type:"integer"}]}},{description:"Summary form, in case `start` was not given.",type:"array",minItems:4,maxItems:4,items:[{description:"Total number of pending messages",type:"integer"},{description:"Minimal pending entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Maximal pending entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Consumers with pending messages",type:"array",items:{type:"array",minItems:2,maxItems:2,items:[{description:"Consumer name",type:"string"},{description:"Number of pending messages",type:"string"}]}}]}]}},{id:"XRANGE",group:"stream",since:"5.0.0",arity:-4,summary:"Returns the messages from a stream within a range of IDs.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"start",type:"string"},{name:"end",type:"string"},{name:"count",type:"integer",optional:!0,token:"COUNT"}],reply:{description:"Stream entries with IDs matching the specified range.",type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{description:"Entry ID",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Data",type:"array",items:{type:"string"}}]}}},{id:"XREAD",group:"stream",since:"5.0.0",arity:-4,summary:"Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise.",flags:["BLOCKING","READONLY"],arguments:[{name:"count",type:"integer",optional:!0,token:"COUNT"},{name:"milliseconds",type:"integer",optional:!0,token:"BLOCK"},{name:"streams",type:"block",token:"STREAMS",arguments:[{name:"key",type:"key",multiple:!0},{name:"ID",type:"string",multiple:!0}]}],reply:{oneOf:[{description:"A map of key-value elements when each element composed of key name and the entries reported for that key",type:"object",patternProperties:{"^.*$":{description:"The entries reported for that key",type:"array",items:{type:"array",minItems:2,maxItems:2,items:[{description:"entry id",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"array of field-value pairs",type:"array",items:{type:"string"}}]}}}},{description:"If BLOCK option is given, and a timeout occurs, or there is no stream we can serve",type:"null"}]}},{id:"XREADGROUP",group:"stream",since:"5.0.0",arity:-7,summary:"Returns new or historical messages from a stream for a consumer in a group. Blocks until a message is available otherwise.",flags:["BLOCKING","WRITE"],arguments:[{name:"group-block",type:"block",token:"GROUP",arguments:[{name:"group",type:"string"},{name:"consumer",type:"string"}]},{name:"count",type:"integer",optional:!0,token:"COUNT"},{name:"milliseconds",type:"integer",optional:!0,token:"BLOCK"},{name:"noack",type:"pure-token",optional:!0,token:"NOACK"},{name:"streams",type:"block",token:"STREAMS",arguments:[{name:"key",type:"key",multiple:!0},{name:"ID",type:"string",multiple:!0}]}],reply:{oneOf:[{description:"If BLOCK option is specified and the timeout expired",type:"null"},{description:"A map of key-value elements when each element composed of key name and the entries reported for that key",type:"object",additionalProperties:{description:"The entries reported for that key",type:"array",items:{type:"array",minItems:2,maxItems:2,items:[{description:"Stream id",type:"string",pattern:"[0-9]+-[0-9]+"},{oneOf:[{description:"Array of field-value pairs",type:"array",items:{type:"string"}},{type:"null"}]}]}}}]}},{id:"XREVRANGE",group:"stream",since:"5.0.0",arity:-4,summary:"Returns the messages from a stream within a range of IDs in reverse order.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"end",type:"string"},{name:"start",type:"string"},{name:"count",type:"integer",optional:!0,token:"COUNT"}],reply:{description:"An array of the entries with IDs matching the specified range",type:"array",items:{type:"array",minItems:2,maxItems:2,items:[{description:"Stream id",type:"string",pattern:"[0-9]+-[0-9]+"},{description:"Array of field-value pairs",type:"array",items:{type:"string"}}]}}},{id:"XSETID",group:"stream",since:"5.0.0",arity:-3,summary:"An internal command for replicating stream values.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"last-id",type:"string"},{name:"entries-added",type:"integer",optional:!0,token:"ENTRIESADDED"},{name:"max-deleted-id",type:"string",optional:!0,token:"MAXDELETEDID"}],reply:{const:"OK"}},{id:"XTRIM",group:"stream",since:"5.0.0",arity:-4,summary:"Deletes messages from the beginning of a stream.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"trim",type:"block",arguments:[{name:"strategy",type:"oneof",arguments:[{name:"maxlen",type:"pure-token",token:"MAXLEN"},{name:"minid",type:"pure-token",token:"MINID"}]},{name:"operator",type:"oneof",optional:!0,arguments:[{name:"equal",type:"pure-token",token:"="},{name:"approximately",type:"pure-token",token:"~"}]},{name:"threshold",type:"string"},{name:"count",type:"integer",optional:!0,token:"LIMIT"}]}],reply:{description:"The number of entries deleted from the stream.",type:"integer",minimum:0}},{id:"ZADD",group:"sorted_set",since:"1.2.0",arity:-4,summary:"Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"condition",type:"oneof",optional:!0,arguments:[{name:"nx",type:"pure-token",token:"NX"},{name:"xx",type:"pure-token",token:"XX"}]},{name:"comparison",type:"oneof",optional:!0,arguments:[{name:"gt",type:"pure-token",token:"GT"},{name:"lt",type:"pure-token",token:"LT"}]},{name:"change",type:"pure-token",optional:!0,token:"CH"},{name:"increment",type:"pure-token",optional:!0,token:"INCR"},{name:"data",type:"block",multiple:!0,arguments:[{name:"score",type:"double"},{name:"member",type:"string"}]}],reply:{anyOf:[{description:"Operation was aborted (conflict with one of the `XX`/`NX`/`LT`/`GT` options).",type:"null"},{description:"The number of new members (when the `CH` option is not used)",type:"integer"},{description:"The number of new or updated members (when the `CH` option is used)",type:"integer"},{description:"The updated score of the member (when the `INCR` option is used)",type:"number"}]}},{id:"ZCARD",group:"sorted_set",since:"1.2.0",arity:2,summary:"Returns the number of members in a sorted set.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"}],reply:{description:"The cardinality (number of elements) of the sorted set, or 0 if key does not exist",type:"integer"}},{id:"ZCOUNT",group:"sorted_set",since:"2.0.0",arity:4,summary:"Returns the count of members in a sorted set that have scores within a range.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"min",type:"double"},{name:"max",type:"double"}],reply:{description:"The number of elements in the specified score range",type:"integer"}},{id:"ZDIFF",group:"sorted_set",since:"6.2.0",arity:-3,summary:"Returns the difference between multiple sorted sets.",flags:["READONLY"],arguments:[{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"withscores",type:"pure-token",optional:!0,token:"WITHSCORES"}],reply:{anyOf:[{description:"A list of members. Returned in case `WITHSCORES` was not used.",type:"array",items:{type:"string"}},{description:"Members and their scores. Returned in case `WITHSCORES` was used. In RESP2 this is returned as a flat array",type:"array",items:{type:"array",minItems:2,maxItems:2,items:[{description:"Member",type:"string"},{description:"Score",type:"number"}]}}]}},{id:"ZDIFFSTORE",group:"sorted_set",since:"6.2.0",arity:-4,summary:"Stores the difference of multiple sorted sets in a key.",flags:["WRITE","DENYOOM"],arguments:[{name:"destination",type:"key"},{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0}],reply:{description:"Number of elements in the resulting sorted set at `destination`",type:"integer"}},{id:"ZINCRBY",group:"sorted_set",since:"1.2.0",arity:4,summary:"Increments the score of a member in a sorted set.",flags:["WRITE","DENYOOM","FAST"],arguments:[{name:"key",type:"key"},{name:"increment",type:"integer"},{name:"member",type:"string"}],reply:{description:"The new score of `member`",type:"number"}},{id:"ZINTER",group:"sorted_set",since:"6.2.0",arity:-3,summary:"Returns the intersect of multiple sorted sets.",flags:["READONLY"],arguments:[{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"weight",type:"integer",optional:!0,multiple:!0,token:"WEIGHTS"},{name:"aggregate",type:"oneof",optional:!0,token:"AGGREGATE",arguments:[{name:"sum",type:"pure-token",token:"SUM"},{name:"min",type:"pure-token",token:"MIN"},{name:"max",type:"pure-token",token:"MAX"}]},{name:"withscores",type:"pure-token",optional:!0,token:"WITHSCORES"}],reply:{anyOf:[{description:"Result of intersection, containing only the member names. Returned in case `WITHSCORES` was not used.",type:"array",items:{type:"string"}},{description:"Result of intersection, containing members and their scores. Returned in case `WITHSCORES` was used. In RESP2 this is returned as a flat array",type:"array",items:{type:"array",minItems:2,maxItems:2,items:[{description:"Member",type:"string"},{description:"Score",type:"number"}]}}]}},{id:"ZINTERCARD",group:"sorted_set",since:"7.0.0",arity:-3,summary:"Returns the number of members of the intersect of multiple sorted sets.",flags:["READONLY"],arguments:[{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"limit",type:"integer",optional:!0,token:"LIMIT"}],reply:{description:"Number of elements in the resulting intersection.",type:"integer",minimum:0}},{id:"ZINTERSTORE",group:"sorted_set",since:"2.0.0",arity:-4,summary:"Stores the intersect of multiple sorted sets in a key.",flags:["WRITE","DENYOOM"],arguments:[{name:"destination",type:"key"},{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"weight",type:"integer",optional:!0,multiple:!0,token:"WEIGHTS"},{name:"aggregate",type:"oneof",optional:!0,token:"AGGREGATE",arguments:[{name:"sum",type:"pure-token",token:"SUM"},{name:"min",type:"pure-token",token:"MIN"},{name:"max",type:"pure-token",token:"MAX"}]}],reply:{description:"Number of elements in the resulting sorted set.",type:"integer",minimum:0}},{id:"ZLEXCOUNT",group:"sorted_set",since:"2.8.9",arity:4,summary:"Returns the number of members in a sorted set within a lexicographical range.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"min",type:"string"},{name:"max",type:"string"}],reply:{description:"Number of elements in the specified score range.",type:"integer",minimum:0}},{id:"ZMPOP",group:"sorted_set",since:"7.0.0",arity:-4,summary:"Returns the highest- or lowest-scoring members from one or more sorted sets after removing them. Deletes the sorted set if the last member was popped.",flags:["WRITE"],arguments:[{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"where",type:"oneof",arguments:[{name:"min",type:"pure-token",token:"MIN"},{name:"max",type:"pure-token",token:"MAX"}]},{name:"count",type:"integer",optional:!0,token:"COUNT"}],reply:{oneOf:[{description:"No element could be popped.",type:"null"},{type:"array",minItems:2,maxItems:2,items:[{type:"string",description:"Name of the key that elements were popped."},{type:"array",description:"Popped elements.",items:{type:"array",uniqueItems:!0,minItems:2,maxItems:2,items:[{type:"string",description:"Name of the member."},{type:"number",description:"Score."}]}}]}]}},{id:"ZMSCORE",group:"sorted_set",since:"6.2.0",arity:-3,summary:"Returns the score of one or more members in a sorted set.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string",multiple:!0}],reply:{type:"array",minItems:1,items:{oneOf:[{type:"number",description:"The score of the member (a double precision floating point number). In RESP2, this is returned as string."},{type:"null",description:"Member does not exist in the sorted set."}]}}},{id:"ZPOPMAX",group:"sorted_set",since:"5.0.0",arity:-2,summary:"Returns the highest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"count",type:"integer",optional:!0}],reply:{anyOf:[{type:"array",description:"List of popped elements and scores when 'COUNT' isn't specified.",minItems:2,maxItems:2,items:[{type:"string",description:"Popped element."},{type:"number",description:"Score."}]},{type:"array",description:"List of popped elements and scores when 'COUNT' is specified.",items:{type:"array",minItems:2,maxItems:2,items:[{type:"string",description:"Popped element."},{type:"number",description:"Score."}]}}]}},{id:"ZPOPMIN",group:"sorted_set",since:"5.0.0",arity:-2,summary:"Returns the lowest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"count",type:"integer",optional:!0}],reply:{anyOf:[{type:"array",description:"List of popped elements and scores when 'COUNT' isn't specified.",minItems:2,maxItems:2,items:[{type:"string",description:"Popped element."},{type:"number",description:"Score."}]},{type:"array",description:"List of popped elements and scores when 'COUNT' is specified.",items:{type:"array",minItems:2,maxItems:2,items:[{type:"string",description:"Popped element."},{type:"number",description:"Score."}]}}]}},{id:"ZRANDMEMBER",group:"sorted_set",since:"6.2.0",arity:-2,summary:"Returns one or more random members from a sorted set.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"options",type:"block",optional:!0,arguments:[{name:"count",type:"integer"},{name:"withscores",type:"pure-token",optional:!0,token:"WITHSCORES"}]}],reply:{anyOf:[{type:"null",description:"Key does not exist."},{type:"string",description:"Randomly selected element when 'COUNT' is not used."},{type:"array",description:"Randomly selected elements when 'COUNT' is used.",items:{type:"string"}},{type:"array",description:"Randomly selected elements when 'COUNT' and 'WITHSCORES' modifiers are used.",items:{type:"array",minItems:2,maxItems:2,items:[{type:"string",description:"Element."},{type:"number",description:"Score."}]}}]}},{id:"ZRANGE",group:"sorted_set",since:"1.2.0",arity:-4,summary:"Returns members in a sorted set within a range of indexes.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"start",type:"string"},{name:"stop",type:"string"},{name:"sortby",type:"oneof",optional:!0,arguments:[{name:"byscore",type:"pure-token",token:"BYSCORE"},{name:"bylex",type:"pure-token",token:"BYLEX"}]},{name:"rev",type:"pure-token",optional:!0,token:"REV"},{name:"limit",type:"block",optional:!0,token:"LIMIT",arguments:[{name:"offset",type:"integer"},{name:"count",type:"integer"}]},{name:"withscores",type:"pure-token",optional:!0,token:"WITHSCORES"}],reply:{anyOf:[{description:"A list of member elements",type:"array",uniqueItems:!0,items:{type:"string"}},{description:"Members and their scores. Returned in case `WITHSCORES` was used. In RESP2 this is returned as a flat array",type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{description:"Member",type:"string"},{description:"Score",type:"number"}]}}]}},{id:"ZRANGEBYLEX",group:"sorted_set",since:"2.8.9",arity:-4,summary:"Returns members in a sorted set within a lexicographical range.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"min",type:"string"},{name:"max",type:"string"},{name:"limit",type:"block",optional:!0,token:"LIMIT",arguments:[{name:"offset",type:"integer"},{name:"count",type:"integer"}]}],reply:{type:"array",description:"List of elements in the specified score range.",uniqueItems:!0,items:{type:"string"}}},{id:"ZRANGEBYSCORE",group:"sorted_set",since:"1.0.5",arity:-4,summary:"Returns members in a sorted set within a range of scores.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"min",type:"double"},{name:"max",type:"double"},{name:"withscores",type:"pure-token",optional:!0,token:"WITHSCORES"},{name:"limit",type:"block",optional:!0,token:"LIMIT",arguments:[{name:"offset",type:"integer"},{name:"count",type:"integer"}]}],reply:{anyOf:[{type:"array",description:"List of the elements in the specified score range, as not WITHSCORES",uniqueItems:!0,items:{type:"string",description:"Element"}},{type:"array",description:"List of the elements and their scores in the specified score range, as WITHSCORES used",uniqueItems:!0,items:{type:"array",description:"Tuple of element and its score",minItems:2,maxItems:2,items:[{description:"element",type:"string"},{description:"score",type:"number"}]}}]}},{id:"ZRANGESTORE",group:"sorted_set",since:"6.2.0",arity:-5,summary:"Stores a range of members from sorted set in a key.",flags:["WRITE","DENYOOM"],arguments:[{name:"dst",type:"key"},{name:"src",type:"key"},{name:"min",type:"string"},{name:"max",type:"string"},{name:"sortby",type:"oneof",optional:!0,arguments:[{name:"byscore",type:"pure-token",token:"BYSCORE"},{name:"bylex",type:"pure-token",token:"BYLEX"}]},{name:"rev",type:"pure-token",optional:!0,token:"REV"},{name:"limit",type:"block",optional:!0,token:"LIMIT",arguments:[{name:"offset",type:"integer"},{name:"count",type:"integer"}]}],reply:{type:"integer",description:"Number of elements in the resulting sorted set."}},{id:"ZRANK",group:"sorted_set",since:"2.0.0",arity:-3,summary:"Returns the index of a member in a sorted set ordered by ascending scores.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string"},{name:"withscore",type:"pure-token",optional:!0,token:"WITHSCORE"}],reply:{oneOf:[{type:"null",description:"Key does not exist or the member does not exist in the sorted set."},{type:"integer",description:"The rank of the member when 'WITHSCORE' is not used."},{type:"array",description:"The rank and score of the member when 'WITHSCORE' is used.",minItems:2,maxItems:2,items:[{type:"integer"},{type:"number"}]}]}},{id:"ZREM",group:"sorted_set",since:"1.2.0",arity:-3,summary:"Removes one or more members from a sorted set. Deletes the sorted set if all members were removed.",flags:["WRITE","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string",multiple:!0}],reply:{description:"The number of members removed from the sorted set, not including non existing members.",type:"integer",minimum:0}},{id:"ZREMRANGEBYLEX",group:"sorted_set",since:"2.8.9",arity:4,summary:"Removes members in a sorted set within a lexicographical range. Deletes the sorted set if all members were removed.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"min",type:"string"},{name:"max",type:"string"}],reply:{type:"integer",description:"Number of elements removed."}},{id:"ZREMRANGEBYRANK",group:"sorted_set",since:"2.0.0",arity:4,summary:"Removes members in a sorted set within a range of indexes. Deletes the sorted set if all members were removed.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"start",type:"integer"},{name:"stop",type:"integer"}],reply:{type:"integer",description:"Number of elements removed."}},{id:"ZREMRANGEBYSCORE",group:"sorted_set",since:"1.2.0",arity:4,summary:"Removes members in a sorted set within a range of scores. Deletes the sorted set if all members were removed.",flags:["WRITE"],arguments:[{name:"key",type:"key"},{name:"min",type:"double"},{name:"max",type:"double"}],reply:{type:"integer",description:"Number of elements removed."}},{id:"ZREVRANGE",group:"sorted_set",since:"1.2.0",arity:-4,summary:"Returns members in a sorted set within a range of indexes in reverse order.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"start",type:"integer"},{name:"stop",type:"integer"},{name:"withscores",type:"pure-token",optional:!0,token:"WITHSCORES"}],reply:{anyOf:[{description:"List of member elements.",type:"array",uniqueItems:!0,items:{type:"string"}},{description:"List of the members and their scores. Returned in case `WITHSCORES` was used.",type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{description:"member",type:"string"},{description:"score",type:"number"}]}}]}},{id:"ZREVRANGEBYLEX",group:"sorted_set",since:"2.8.9",arity:-4,summary:"Returns members in a sorted set within a lexicographical range in reverse order.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"max",type:"string"},{name:"min",type:"string"},{name:"limit",type:"block",optional:!0,token:"LIMIT",arguments:[{name:"offset",type:"integer"},{name:"count",type:"integer"}]}],reply:{type:"array",description:"List of the elements in the specified score range.",uniqueItems:!0,items:{type:"string"}}},{id:"ZREVRANGEBYSCORE",group:"sorted_set",since:"2.2.0",arity:-4,summary:"Returns members in a sorted set within a range of scores in reverse order.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"max",type:"double"},{name:"min",type:"double"},{name:"withscores",type:"pure-token",optional:!0,token:"WITHSCORES"},{name:"limit",type:"block",optional:!0,token:"LIMIT",arguments:[{name:"offset",type:"integer"},{name:"count",type:"integer"}]}],reply:{anyOf:[{type:"array",description:"List of the elements in the specified score range, as not WITHSCORES",uniqueItems:!0,items:{type:"string",description:"Element"}},{type:"array",description:"List of the elements and their scores in the specified score range, as WITHSCORES used",uniqueItems:!0,items:{type:"array",description:"Tuple of element and its score",minItems:2,maxItems:2,items:[{type:"string",description:"element"},{type:"number",description:"score"}]}}]}},{id:"ZREVRANK",group:"sorted_set",since:"2.0.0",arity:-3,summary:"Returns the index of a member in a sorted set ordered by descending scores.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string"},{name:"withscore",type:"pure-token",optional:!0,token:"WITHSCORE"}],reply:{oneOf:[{type:"null",description:"Key does not exist or the member does not exist in the sorted set."},{type:"integer",description:"The rank of the member when 'WITHSCORE' is not used."},{type:"array",description:"The rank and score of the member when 'WITHSCORE' is used.",minItems:2,maxItems:2,items:[{type:"integer"},{type:"number"}]}]}},{id:"ZSCAN",group:"sorted_set",since:"2.8.0",arity:-3,summary:"Iterates over members and scores of a sorted set.",flags:["READONLY"],arguments:[{name:"key",type:"key"},{name:"cursor",type:"integer"},{name:"pattern",type:"pattern",optional:!0,token:"MATCH"},{name:"count",type:"integer",optional:!0,token:"COUNT"}],reply:{description:"cursor and scan response in array form",type:"array",minItems:2,maxItems:2,items:[{description:"cursor",type:"string"},{description:"list of elements of the sorted set, where each even element is the member, and each odd value is its associated score",type:"array",items:{type:"string"}}]}},{id:"ZSCORE",group:"sorted_set",since:"1.2.0",arity:3,summary:"Returns the score of a member in a sorted set.",flags:["READONLY","FAST"],arguments:[{name:"key",type:"key"},{name:"member",type:"string"}],reply:{oneOf:[{type:"number",description:"The score of the member (a double precision floating point number). In RESP2, this is returned as string."},{type:"null",description:"Member does not exist in the sorted set, or key does not exist."}]}},{id:"ZUNION",group:"sorted_set",since:"6.2.0",arity:-3,summary:"Returns the union of multiple sorted sets.",flags:["READONLY"],arguments:[{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"weight",type:"integer",optional:!0,multiple:!0,token:"WEIGHTS"},{name:"aggregate",type:"oneof",optional:!0,token:"AGGREGATE",arguments:[{name:"sum",type:"pure-token",token:"SUM"},{name:"min",type:"pure-token",token:"MIN"},{name:"max",type:"pure-token",token:"MAX"}]},{name:"withscores",type:"pure-token",optional:!0,token:"WITHSCORES"}],reply:{anyOf:[{description:"The result of union when 'WITHSCORES' is not used.",type:"array",uniqueItems:!0,items:{type:"string"}},{description:"The result of union when 'WITHSCORES' is used.",type:"array",uniqueItems:!0,items:{type:"array",minItems:2,maxItems:2,items:[{type:"string"},{type:"number"}]}}]}},{id:"ZUNIONSTORE",group:"sorted_set",since:"2.0.0",arity:-4,summary:"Stores the union of multiple sorted sets in a key.",flags:["WRITE","DENYOOM"],arguments:[{name:"destination",type:"key"},{name:"numkeys",type:"integer"},{name:"key",type:"key",multiple:!0},{name:"weight",type:"integer",optional:!0,multiple:!0,token:"WEIGHTS"},{name:"aggregate",type:"oneof",optional:!0,token:"AGGREGATE",arguments:[{name:"sum",type:"pure-token",token:"SUM"},{name:"min",type:"pure-token",token:"MIN"},{name:"max",type:"pure-token",token:"MAX"}]}],reply:{description:"The number of elements in the resulting sorted set.",type:"integer"}}]};import{createPackFetch as L}from"../../engine/v3/volter_world-core.mjs";import{redis as O}from"../../engine/v3/volter_world-core.mjs";import{privateTransportKey as k,redis as s}from"../../engine/v3/volter_world-core.mjs";var T=new Map(i.commands.map(e=>[e.id,e])),d=e=>T.get(e);var p=()=>k("redis-resp"),y="x-volter-redis-wire",I=new Set(["DECRBY","INCRBY","AUTH","BZPOPMIN","CLIENT","CLIENT LIST","CLIENT SETINFO","CLIENT SETNAME","DEL","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","GET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HMGET","HMSET","HSET","HVALS","INCR","INFO","LINDEX","LLEN","LPOS","LPUSH","LRANGE","LREM","LTRIM","MGET","MULTI","PERSIST","PEXPIRE","PING","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RPOP","RPOPLPUSH","RPUSH","SADD","SCAN","SCARD","SELECT","SET","SMEMBERS","SREM","SUBSCRIBE","UNSUBSCRIBE","XADD","XTRIM","ZADD","ZCARD","ZPOPMIN","ZRANGE","ZRANGEBYSCORE","ZREM","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZSCORE"]),N=["AUTH","SELECT","CLIENT","INFO","QUIT","MULTI","EXEC","DISCARD","BZPOPMIN","PUBLISH","SUBSCRIBE","PSUBSCRIBE","UNSUBSCRIBE","PUNSUBSCRIBE"],m=e=>`ERR unknown command '${(e[0]??"").slice(0,128)}', with args beginning with: ${e.slice(1).map(t=>`'${t}'`).join(" ")}`,u={unknownCommand:m,unmodeled:()=>"ERR syntax error",shapeError(e){let t=(e[0]??"").toUpperCase(),n=["CLIENT","SCRIPT"].includes(t)&&e.length>1?`${t} ${e[1].toUpperCase()}`:t,r=I.has(n)?d(n):void 0;if(!r)return m(e);let l=e.length;return r.arity>0?l===r.arity?null:s.wrongArity(n):l>=-r.arity?null:s.wrongArity(n)},commands:Object.fromEntries(N.map(e=>[e,[0,-1]])),exec(e,t){throw new s.RedisCommandError(m(t))},writes:new Set(["BZPOPMIN"]),lua:{extend:s.standardLuaLibraries,numberArg:s.numberToLuaString},scriptErrorsKeepWrites:!0,storage:s.memberStorage};function S(e){return Response.json({items:e.map(()=>({error:"READONLY You can't write against a read only replica."})),wrote:!1})}function c(e,t){if(!(e instanceof s.ReadOnlyError))throw e;return S(t)}async function g(e,t){if(e.call.request.method!=="POST"||e.call.request.headers.get(y)!==p())return t();let n=await e.call.request.json();return e.redis(n.commands,{dialect:u,database:n.database}).then(r=>Response.json(O.wireValue(r)),r=>c(r,n.commands))}var f={};var h={};function o(e={}){return L({manifest:a,surface:i,handlers:h,doors:f,around:g},e)}import{serveHttp as $,serveStream as Q}from"../../engine/v3/volter_world-core.mjs";import{redis as Z}from"../../engine/v3/volter_world-core.mjs";var oe=b(A(a,i));export{o as createTwinFetch};
|