src/NestedContainer.php
protected function setHasCache($id, $value)
    {
        if (!$this->useHasCache) {
            return true;
        }

        unset($this->hasCache[$id]);
        $this->hasCache[$id] = $value;

        if (count($this->hasCache) > $this->hasCacheLength) {
            $this->hasCache = array_slice($this->hasCache, -$this->hasCacheLength, null, true);
        }

        return true;
    }
protected function setHasCache($id, $value)
    {
        if (!$this->useHasCache) {
            return true;
        }

        unset($this->hasCache[$id]);
        $this->hasCache[$id] = $value;

        if (count($this->hasCache) > $this->hasCacheLength) {
            $this->hasCache = array_slice($this->hasCache, -$this->hasCacheLength, null, true);
        }

        return true;
    }
protected function setHasCache ( $ id , $ value ) { if ( ! $ this -> useHasCache ) { return true ; } unset ( $ this -> hasCache [ $ id ] ) ; $ this -> hasCache [ $ id ] = $ value ; if ( count ( $ this -> hasCache ) > $ this -> hasCacheLength ) { $ this -> hasCache = array_slice ( $ this -> hasCache , - $ this -> hasCacheLength , null , true ) ; } return true ; }
Stores index of the container to the cache
@param $id
@param $value
@return bool
Stores index of the container to the cache