File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,19 @@ public function testRedisOptionPrefix()
5151        $ this assertSame ('yyy ' , $ this getRedis ()->get ('test:test ' ));
5252    }
5353
54+     public  function  testHyperLogLog ()
55+     {
56+         $ redis$ this getRedis ();
57+         $ res$ redispfAdd ('test:hyperloglog ' , ['123 ' , 'fff ' ]);
58+         $ this assertSame (1 , $ res
59+         $ res$ redispfAdd ('test:hyperloglog ' , ['123 ' ]);
60+         $ this assertSame (0 , $ res
61+         $ this assertSame (2 , $ redispfCount ('test:hyperloglog ' ));
62+         $ redispfAdd ('test:hyperloglog2 ' , [1234 ]);
63+         $ redispfMerge ('test:hyperloglog2 ' , ['test:hyperloglog ' ]);
64+         $ this assertSame (3 , $ redispfCount ('test:hyperloglog2 ' ));
65+     }
66+ 
5467    public  function  testRedisOptionSerializer ()
5568    {
5669        $ redis$ this getRedis ([
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments