src/Adapter/FileCache.php
protected function getPath($variableName = '')
    {
        $hash = function ($name) {
            return hash($this->hashingAlgorithm, $name);
        };
        $path = $this->basedir . PHP_DS . $hash($this->namespace);
        if ($variableName) {
            $path .= PHP_DS . $hash($variableName) . '.dat';

            return $path;
        }

        return $path;
    }
protected function getPath($variableName = '')
    {
        $hash = function ($name) {
            return hash($this->hashingAlgorithm, $name);
        };
        $path = $this->basedir . PHP_DS . $hash($this->namespace);
        if ($variableName) {
            $path .= PHP_DS . $hash($variableName) . '.dat';

            return $path;
        }

        return $path;
    }
protected function getPath ( $ variableName = '' ) { $ hash = function ( $ name ) { return hash ( $ this -> hashingAlgorithm , $ name ) ; } ; $ path = $ this -> basedir . PHP_DS . $ hash ( $ this -> namespace ) ; if ( $ variableName ) { $ path .= PHP_DS . $ hash ( $ variableName ) . '.dat' ; return $ path ; } return $ path ; }
Gets the path to the file appropriate variable or path to namespace directory.

@param string $variableName Optional; the name of variable

@return string If the variable name received, returns the path to
appropriate file, otherwise returns the path to
directory of namespace
Gets the path to the file appropriate variable or path to namespace directory .