content/commands/lolwut.md
The LOLWUT command displays the Redis version: however as a side effect of doing so, it also creates a piece of generative computer art that is different with each version of Redis. The command was introduced in Redis 5 and announced with this blog post.
By default the LOLWUT command will display the piece corresponding to the
current Redis version, however it is possible to display a specific version
using the following form:
LOLWUT VERSION 5 ... other optional arguments ...
Of course the "5" above is an example. Each LOLWUT version takes a different set of arguments in order to change the output. The user is encouraged to play with it to discover how the output changes adding more numerical arguments.
LOLWUT wants to be a reminder that there is more in programming than just putting some code together in order to create something useful. Every LOLWUT version should have the following properties:
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |
{{< multitabs id="lolwut-return-info" tab1="RESP2" tab2="RESP3" >}}
Bulk string reply: a string containing generative computer art and the Redis version.
-tab-sep-
Verbatim string reply: a string containing generative computer art and the Redis version.
{{< /multitabs >}}