Pārlūkot izejas kodu

New command: ZINTER (Redis v2.0-dev).

Daniele Alessandri 15 gadi atpakaļ
vecāks
revīzija
52a1c06ac2
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      lib/Predis.php

+ 6 - 0
lib/Predis.php

@@ -1198,6 +1198,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
             /* commands operating on sorted sets */
             'zunion'                    => '\Predis\Commands\ZSetUnion',
                 'zsetUnion'             => '\Predis\Commands\ZSetUnion',
+            'zinter'                    => '\Predis\Commands\ZSetIntersection',
+                'zsetIntersection'      => '\Predis\Commands\ZSetIntersection',
             'zcount'                    => '\Predis\Commands\ZSetCount',
                 'zsetCount'             => '\Predis\Commands\ZSetCount',
             'zrank'                     => '\Predis\Commands\ZSetRank',
@@ -1661,6 +1663,10 @@ class ZSetUnion extends \Predis\InlineCommand {
     public function getCommandId() { return 'ZUNION'; }
 }
 
+class ZSetIntersection extends \Predis\InlineCommand {
+    public function getCommandId() { return 'ZINTER'; }
+}
+
 class ZSetRange extends \Predis\InlineCommand {
     public function getCommandId() { return 'ZRANGE'; }
     public function parseResponse($data) {