src/Environaut/Cache/ReadOnlyCache.php
public function setLocation($location)
    {
        if (!is_readable($location)) {
            throw new \InvalidArgumentException('Given cache location "' . $location . '" is not readable.');
        }

        $this->location = $location;

        return $this;
    }
public function setLocation($location)
    {
        if (!is_readable($location)) {
            throw new \InvalidArgumentException('Given cache location "' . $location . '" is not readable.');
        }

        $this->location = $location;

        return $this;
    }
Sets the given location as the cache location to use.

@param string $location cache file path

@return ReadOnlyCache this instance for fluent API support

@throws \InvalidArgumentException if location is not readable