2.16.2.3. String Type Access Commands

GET

get the value associated with a key

GETRANGE

... or only some characters

GETDEL

... and delete the key

GETEX

... and set key expiration time

SET

set the value associated with a key

SETRANGE

... or only some characters

SETNX

... if target does not exist

SETEX

... and set the key expiration time

PSETEX

... in milliseconds

GETSET

... and return the previous value

MGET

get values for multiple keys

MSET

set values for multiple keys

MSETNX

... if targets do not exist

APPEND

append new value to the existing value

STRLEN

get the length of the existing value

GETBIT

get single bit

SETBIT

set single bit

BITCOUNT

count bits that are set

BITPOS

find first bit that is set or reset

BITOP

perform logical operation between multiple keys

BITFIELD

perform get or set or inc on subset of bits

INCR

interpret string as integer and increment

INCRBY

... by arbitrary value

DECR

interpret string as integer and decrement

DECRBY

... by arbitrary value

INCRBYFLOAT

interpret string as float and increment or decrement