在webman中使用redis,设置options显示错误

吉祥天

问题描述

在webman中使用redis,设置options,set_options(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP),显示错误

public static function get_local_redis_connection()
    {
        $redis = Redis::connection(ServerInfoManager::redisservername);
        $redis->set_option(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP);
        return $redis;
    }
66 0 0
0个回答

🔝