Stash\Item::getStampedeFlag PHP Method

getStampedeFlag() protected method

Returns true if another Item is currently recalculating the cache.
protected getStampedeFlag ( array $key ) : boolean
$key array
return boolean
    protected function getStampedeFlag($key)
    {
        $key[0] = 'sp';
        // change "cache" data namespace to stampede namespace
        $spReturn = $this->driver->getData($key);
        $sp = isset($spReturn['data']) ? $spReturn['data'] : false;
        if (isset($spReturn['expiration'])) {
            if ($spReturn['expiration'] < time()) {
                $sp = false;
            }
        }
        return $sp;
    }