public function __construct(KeyValueStore $cache) { $this->local = new Buffer(); $this->transaction = new Transaction($this->local, $cache); }