src/Buffered/Utils/Defer.php
protected function generateUpdates()
    {
        $updates = array();

        if ($this->flush) {
            $updates[] = array('flush', array($this->cache, 'flush'), array());
        }

        foreach ($this->keys as $key => $data) {
            $updates[] = $data;
        }

        return $updates;
    }
protected function generateUpdates()
    {
        $updates = array();

        if ($this->flush) {
            $updates[] = array('flush', array($this->cache, 'flush'), array());
        }

        foreach ($this->keys as $key => $data) {
            $updates[] = $data;
        }

        return $updates;
    }
protected function generateUpdates ( ) { $ updates = array ( ) ; if ( $ this -> flush ) { $ updates [ ] = array ( 'flush' , array ( $ this -> cache , 'flush' ) , array ( ) ) ; } foreach ( $ this -> keys as $ key => $ data ) { $ updates [ ] = $ data ; } return $ updates ; }
By storing all updates by key, we've already made sure we don't perform
redundant operations on a per-key basis. Now we'll turn those into
actual updates.

@return array
By storing all updates by key we ve already made sure we don t perform redundant operations on a per - key basis . Now we ll turn those into actual updates .