README.md in kredis-1.4.0 vs README.md in kredis-1.5.0

- old
+ new

@@ -60,9 +60,17 @@ unique_list.append([]) unique_list << "5" # => LREM myuniquelist 0, "5" + RPUSH myuniquelist "5" unique_list.remove(3) # => LREM myuniquelist 0, "3" [ "4", "2", "1", "5" ] == unique_list.elements # => LRANGE myuniquelist 0, -1 +ordered_set = Kredis.ordered_set "myorderedset" +ordered_set.append(%w[ 2 3 4 ]) # => ZADD myorderedset 1646131025.4953232 2 1646131025.495326 3 1646131025.4953272 4 +ordered_set.prepend(%w[ 1 2 3 4 ]) # => ZADD myorderedset -1646131025.4957051 1 -1646131025.495707 2 -1646131025.4957082 3 -1646131025.4957092 4 +ordered_set.append([]) +ordered_set << "5" # => ZADD myorderedset 1646131025.4960442 5 +ordered_set.remove(3) # => ZREM myorderedset 3 +[ "4", "2", "1", "5" ] == ordered_set.elements # => ZRANGE myorderedset 0 -1 + set = Kredis.set "myset", typed: :datetime set.add(DateTime.tomorrow, DateTime.yesterday) # => SADD myset "2021-02-03 00:00:00 +0100" "2021-02-01 00:00:00 +0100" set << DateTime.tomorrow # => SADD myset "2021-02-03 00:00:00 +0100" 2 == set.size # => SCARD myset [ DateTime.tomorrow, DateTime.yesterday ] == set.members # => SMEMBERS myset