Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 386 Bytes

setget.md

File metadata and controls

16 lines (11 loc) · 386 Bytes

SET, GET, GETSET, APPEND

r.set(key, value) r.get(key) r.getset(key, value) r.append(key, value)

  • value can be a double or a char (expect append there it has to be a char)

  • doubles will be converted to char

     ret = r.set('go-redis', 1)
    
     ret =
    
     OK
    
  • return type of GET* commands will be a char or a double (depends on the reply of hiredis)