Redis.set

Set the string value as value of the key. The string can't be longer than 1073741824 bytes (1 GB). @param key @param value @param params NX|XX, NX -- Only set the key if it does not already exist. XX -- Only set the key if it already exist. EX|PX, expire time units: EX = seconds; PX = milliseconds @return Status code reply

  1. string set(string key, string value)
  2. alias set = BinaryRedis.set
  3. string set(string key, string value, SetParams params)
    class Redis
    string
    set
    (
    string key
    ,
    string value
    ,)

Meta