Redis command

GET

Retrieves a string from the data store by key:

SET

Sets the string with the key key to value something:

['SET', 'key', 'something']

DEL

Removes the value at key:

['DEL', 'key']

INCR

Increments the value at counter:

['INCR', 'counter']

LPUSH

Pushes the value to the left side of a list:

['LPUSH', 'work:queue:ids', '101']

RPOP

Pops the value from the right side of a list:

['RPOP', 'work:queue:ids']

HSET

Sets the values as a hash map:

['HSET', 'user:123', 'username', 'martina', 'firstName', 'Martina', 'lastName', 'Elisa', 'country', 'GB']

HGET

Gets a specific property from a hash map:

['HGET', 'user:123', 'username']

For additional Redis commands, please refer to their official documentation.

Last updated