mirror of
https://github.com/redis/redis.git
synced 2026-03-11 02:30:49 -04:00
spopCommand() now runs spopWithCountCommand() in case the <count> param is found. Added intsetRandomMembers() to Intset: Copies N random members from the set into inputted 'values' array. Uses either the Knuth or Floyd sample algos depending on ratio count/size. Added setTypeRandomElements() to SET type: Returns a number of random elements from a non empty set. This is a version of setTypeRandomElement() that is modified in order to return multiple entries, using dictGetRandomKeys() and intsetRandomMembers(). Added tests for SPOP with <count>: unit/type/set, unit/scripting, integration/aof -- Cleaned up code a bit to match with required Redis coding style |
||
|---|---|---|
| .. | ||
| type | ||
| aofrw.tcl | ||
| auth.tcl | ||
| basic.tcl | ||
| bitops.tcl | ||
| dump.tcl | ||
| expire.tcl | ||
| hyperloglog.tcl | ||
| introspection.tcl | ||
| latency-monitor.tcl | ||
| limits.tcl | ||
| maxmemory.tcl | ||
| memefficiency.tcl | ||
| multi.tcl | ||
| obuf-limits.tcl | ||
| other.tcl | ||
| printver.tcl | ||
| protocol.tcl | ||
| pubsub.tcl | ||
| quit.tcl | ||
| scan.tcl | ||
| scripting.tcl | ||
| slowlog.tcl | ||
| sort.tcl | ||