Jarves\Cache\Backend\Files::setup PHP Method

setup() public method

public setup ( $config )
    public function setup($config)
    {
        if (!isset($config['path'])) {
            $config['path'] = $this->cacheDir . '/object-cache/';
        }
        $this->path = $config['path'];
        if ($this->hasOpcodeCacher()) {
            //we've no opcode cacher, so use JSON, because it's faster
            $this->useJson = true;
        }
        if (substr($this->path, -1) != '/') {
            $this->path .= '/';
        }
        if (isset($config['prefix'])) {
            $this->prefix = $config['prefix'];
        }
    }