src/Adapter/PHPArray/ArrayCachePool.php
private function cacheToolkit($keys, $value = null, $unset = false)
    {
        $element = &$this->cache;

        while ($keys && ($key = array_shift($keys))) {
            if (!$keys && is_null($value) && $unset) {
                unset($element[$key]);
                unset($element);
                $element = null;
            } else {
                $element =&$element[$key];
            }
        }

        if (!$unset && !is_null($value)) {
            $element = $value;
        }

        return $element;
    }
private function cacheToolkit($keys, $value = null, $unset = false)
    {
        $element = &$this->cache;

        while ($keys && ($key = array_shift($keys))) {
            if (!$keys && is_null($value) && $unset) {
                unset($element[$key]);
                unset($element);
                $element = null;
            } else {
                $element =&$element[$key];
            }
        }

        if (!$unset && !is_null($value)) {
            $element = $value;
        }

        return $element;
    }
private function cacheToolkit ( $ keys , $ value = null , $ unset = false ) { $ element = & $ this -> cache ; while ( $ keys && ( $ key = array_shift ( $ keys ) ) ) { if ( ! $ keys && is_null ( $ value ) && $ unset ) { unset ( $ element [ $ key ] ) ; unset ( $ element ) ; $ element = null ; } else { $ element = & $ element [ $ key ] ; } } if ( ! $ unset && ! is_null ( $ value ) ) { $ element = $ value ; } return $ element ; }
Used to manipulate cached data by extracting, inserting or deleting value.

@param array      $keys
@param null|mixed $value
@param bool       $unset

@return mixed
Used to manipulate cached data by extracting inserting or deleting value .