src/Adapters/LocalAdapter.php
public function key($reset = false)
    {
        static $key;
        $key = $reset ? false : $key;
        if (!$key) {
            $path = $this->path . "/.cache_key";
            if (file_exists($path)) {
                $key = file_get_contents($path);
            } else {
                $key = $this->setKey();
            }
        }
        return $key;
    }
public function key($reset = false)
    {
        static $key;
        $key = $reset ? false : $key;
        if (!$key) {
            $path = $this->path . "/.cache_key";
            if (file_exists($path)) {
                $key = file_get_contents($path);
            } else {
                $key = $this->setKey();
            }
        }
        return $key;
    }
public function key ( $ reset = false ) { static $ key ; $ key = $ reset ? false : $ key ; if ( ! $ key ) { $ path = $ this -> path . "/.cache_key" ; if ( file_exists ( $ path ) ) { $ key = file_get_contents ( $ path ) ; } else { $ key = $ this -> setKey ( ) ; } } return $ key ; }
Gets the current cache namespace key.

Note: to save on time spent reading/writing to disk, this method uses
static caching. Its important that when a cache key gets reset this
method has it's local cache reset by passing `true`.

@param  boolean $reset resets the static cache.
@return void
Gets the current cache namespace key .