| 
...
 | 
...
 | 
@@ -112,6 +112,18 @@ trait RedisQuery { | 
| 
 | 
 | 
     }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * 读取list列表中的数量
 | 
| 
 | 
 | 
      * LLEN
 | 
| 
 | 
 | 
      * @param string $key
 | 
| 
 | 
 | 
      * @return mixed
 | 
| 
 | 
 | 
      * @author:dc
 | 
| 
 | 
 | 
      * @time 2024/10/30 15:54
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     public function listCount(string $key){
 | 
| 
 | 
 | 
         return $this->getClient()->lLen($key);
 | 
| 
 | 
 | 
     }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     /**
 | 
| 
 | 
 | 
      * @param $key
 | 
| 
 | 
 | 
      * @param $value
 | 
| 
 | 
 | 
      * @return false|int
 | 
...
 | 
...
 | 
 |