LCS
Returns a longest common subsequence of two string values.
Strings · Example verified
Syntax covered here
LCS key1 key2Both arguments are key names containing strings; the case uses the plain form without length or index options.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> MSET first hello second cello
"OK"
# connection: default
> LCS first second
"ello"