1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
public function test_zset() { $this->redis->zAdd('key_zadd', 'score_1', 'value_zadd');
$this->redis->zScore('key_zadd', 'value_zadd');
$this->redis->zIncrBy('key_zincr', 1, 'value_zadd');
$this->redis->zCard('key_zadd');
$this->redis->zCount('key_zadd', 0, 100);
$this->redis->zRange('key_zadd', 0, 100);
$this->redis->zRevRange('key_zadd', 0, 100);
$this->redis->zRangeByScore('key_zadd', 0, 100);
$this->redis->zRemRangeByScore('key_zadd', 0, 100);
$this->redis->zRank('key_zadd', 'value_zadd');
$this->redis->zRevRank('key_zadd', 'value_zadd');
$this->redis->zRem('key_zadd', 'value_zadd', 'value_zadd_2');
$this->redis->zRemRangeByRank('key_zadd', 0, 100);
$this->redis->zRemRangeByScore('key_zadd', 0, 100);
$this->redis->zRangeByLex('key_zadd', 0, 100);
$this->redis->zRevRangeByLex('key_zadd', 0, 100);
$this->redis->zScan('key_zadd', '', '', '');
$this->redis->zUnion('key_zunion', ['key_zsets', 'key_zsets_2'], '', ''); }
|