MatthiasMullie\Scrapbook\Buffered\Utils\Transaction::__construct PHP Метод

__construct() публичный Метод

public __construct ( Buffer $local, MatthiasMullie\Scrapbook\KeyValueStore $cache )
$local Buffer
$cache MatthiasMullie\Scrapbook\KeyValueStore
    public function __construct(Buffer $local, KeyValueStore $cache)
    {
        $this->cache = $cache;
        // (uncommitted) writes must never be evicted (even if that means
        // crashing because we run out of memory)
        $this->local = $local;
        $this->defer = new Defer($this->cache);
    }