kevy4.0

GETSET

Set a key's string value and return its previous value.

GETSET key value
Group
String
Since
1.0.0
Arity
exactly 3
Flags
write

Complexity

O(1)

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Compatible

Behaves as Redis does.

See also

APPENDDECRDECRBYGETGETDELINCRINCRBYINCRBYFLOATMGETMSETPSETEXSETSETEXSETNXSTRLEN

← All commands