AFTER 1.0 stable release
* Consistent hashing implemented in all the client libraries having an user base
- * Use partial qsort for SORT + LIMIT. Don't copy the list into a vector when BY argument is constant.
+ * SORT: Don't copy the list into a vector when BY argument is constant.
+ * SORT ... STORE keyname. Instead to return the SORTed data set it into key.
* Profiling and optimization in order to limit the CPU usage at minimum
* Write the hash table size of every db in the dump, so that Redis can resize the hash table just one time when loading a big DB.
* Elapsed time in logs for SAVE when saving is going to take more than 2 seconds
lsort [$r smembers setres]
} [lsort -uniq "[$r smembers set1] [$r smembers set2]"]
- test {SUNIONSTORE with same src and dest} {
- $r sunionstore set1 set1 set1
- $r scard set1
- } {1000}
-
test {SINTER against three sets} {
$r sadd set3 999
$r sadd set3 995
lsort [$r smembers setres]
} {995 999}
- test {SINTERSTORE with same src and dest} {
- $r sinterstore set1 set1 set1
- $r scard set1
- } {1000}
-
test {SUNION with non existing keys} {
lsort [$r sunion nokey1 set1 set2 nokey2]
} [lsort -uniq "[$r smembers set1] [$r smembers set2]"]