src/Redis.php
private function getResult(ConnectionInterface $connection, $result)
    {
        if (App::isCoContext()) {
            return new CacheCoResult($result, $connection);
        }

        return new CacheDataResult($result, $connection);
    }
private function getResult(ConnectionInterface $connection, $result)
    {
        if (App::isCoContext()) {
            return new CacheCoResult($result, $connection);
        }

        return new CacheDataResult($result, $connection);
    }
@param ConnectionInterface $connection
@param mixed               $result

@return ResultInterface