Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

LICENSE.SET

Last updated
LICENSE.SET license-data
Group
License
Complexity
O(N) where N is the size of the license
Arity
2 (exactly, counting the command name)
Flags
admin, slow
HotKV Cloud
All plans
On-Premise
no license needed

LICENSE.SET installs a license sent as an argument, so you do not need file access to the server. Pass the whole content of the license file your HotKV account team sent you as one argument. If the license is usable on this server, it takes effect at once and is saved to the license file (license-path). That path is then used by LICENSE.RELOAD.

A license that is not usable here is refused, and the license already in force stays in force. The command cannot be called from a script.

Simple string OK in RESP2 and RESP3, or one of these errors:

Case Error
Empty argument ERR empty license data
Larger than 1 MB ERR license data larger than 1048576 bytes
Not usable on this server ERR license not installed: <reason>
Usable, but the file could not be written ERR license valid but failed to save to <path>
$ redis-cli LICENSE.SET "$(cat /etc/hotkv/hotkv.license)"
OK
$ redis-cli LICENSE.SET "not a license"
(error) ERR license not installed: ...

The second reply ends with the reason the license was refused.

HotKV-only command.

LICENSE.INFO, LICENSE.RELOAD, On-Premise quick start