Redis.lset

Set a new value as the element at index position of the List at key. <p> Out of range indexes will generate an error. <p> Similarly to other list commands accepting indexes, the index can be negative to access elements starting from the end of the list. So -1 is the last element, -2 is the penultimate, and so forth. <p> <b>Time complexity:</b> <p> O(N) (with N being the length of the list), setting the first or last elements of the list is O(1). @see #lindex(string, long) @param key @param index @param value @return Status code reply

  1. string lset(string key, long index, string value)
    class Redis
    string
    lset
    (
    string key
    ,
    long index
    ,
    string value
    )
  2. alias lset = BinaryRedis.lset

Meta