Skip to main content

wrong_type

Function wrong_type 

Source
pub fn wrong_type() -> Error
Expand description

What Redis says when a command is sent at a key holding another type.

The text is Redis’s, word for word, because it goes on the wire verbatim and clients match on it. The WRONGTYPE at the front is not part of the message: the protocol layer puts it there from the Code, which is what lets an embedded caller match on a value instead of on a string (P5).