VSIM.LOAD
VSIM.LOAD name
- Group
- Vector search
- Complexity
- O(N) where N is the size of the blob
- Arity
- 2 (exactly, counting the command name)
- Flags
- read-only, slow
- HotKV Cloud
- Performance and Scale
- On-Premise
- requires the vsim-persist license feature
VSIM persistence stores named blobs of vector data that you supply, such as an exported set of embeddings, as files on the server, separate from your snapshots and AOF. Each blob goes to a file named after it in the directory set by dir under [vsim_persist] (default vsim_snapshots) when enabled = true there. The files are local to each server, also in a cluster. VSIM.LOAD returns the blob saved under name, exactly as it was
saved.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Found | Bulk string: the blob | Same |
| No such blob, an invalid name, or an unreadable file | Nil bulk string | Null |
Errors:
ERR wrong number of arguments for 'vsim.load' commandif the argument count is wrong.NOLICENSE vsim-persist requires a HotKV license. Contact sales@hotkv.comif your license does not include thevsim-persistfeature.
Examples
Section titled “Examples”127.0.0.1:6379> VSIM.LOAD products-2026-10"0.12,0.98,0.44;0.10,0.95,0.40"127.0.0.1:6379> VSIM.LOAD missing(nil)Compatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.