PROMPT.VERSIONS
PROMPT.VERSIONS name
- Group
- Prompt registry
- Complexity
- O(N) where N is the number of stored versions
- Arity
- 2 (exactly, counting the command name)
- Flags
- read-only, fast
- Keys
- first 1, last 1, step 1
- HotKV Cloud
- Performance and Scale
- On-Premise
- requires the prompt-registry license feature
The prompt registry stores versioned prompt templates by name, with one version marked active, so you can roll a prompt forward or back without deploying code. PROMPT.VERSIONS returns the version numbers the template still
holds, oldest first.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Always | Array of integers (empty for an unknown template) | Same |
Errors:
ERR wrong number of arguments for 'prompt.versions' commandif the argument count is wrong.NOLICENSE prompt-registry requires a HotKV license. Contact sales@hotkv.comif your license does not include theprompt-registryfeature.
Examples
Section titled “Examples”127.0.0.1:6379> PROMPT.VERSIONS support-agent1) (integer) 12) (integer) 2Compatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”PROMPT.PUT, PROMPT.GET, PROMPT.LATEST, PROMPT.SETACTIVE, PROMPT.DROP, PROMPT.LIST, AI features guide
Was this page helpful?
Thanks for the feedback.