Redis

SET key value

Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type.

Return value

Status code reply: always OK since SET can't fail.

Examples

redis>  SET mykey "Hello"
OK
redis>  GET mykey
"Hello"
redis> 
Comments powered by Disqus