php redis zrem、srem 批量移除

正文开始

 //无序集合 批量移除
public static function sSubArray($cacheName, array $list)
    {
        if(is_string($list)) $list = explode(',', $list);
        return call_user_func_array([self::$redis, 'sRem'], array_merge([$cacheName], $list));
    }


//有序集合 批量移除
 public static function zSubArray($cacheName, array $list)
    {
        if(is_string($list)) $list = explode(',', $list);
        return call_user_func_array([self::$redis, 'zRem'], array_merge([$cacheName], $list));
 }

正文结束

Could not connect to Redis at 127.0.0.1:6379: Connection refused Redis 发布订阅 (pub/sub) 是一种消息通信模式