I am building a Java application using lettuce as a Redis client.
One of the requirements is to run the redis commands from inside the application as i would run them from the command line redis-cli so instead of writing the implemented API method:
commands.set("key", "value");
I enter the actual raw command:
SET key value
and the command would run on the server. For example is there a method in the letuce api simmilar to this?
commands.runrawcommand("SET key value");
Thanks in Advance
That won't entirely work. Redis commands as used in a cli require parsing and result processing. Take a look at the wiki explaining Custom commands.