private function saveState($lastTick, $balance)
    {
        $this->lastTick->set($lastTick);
        $this->balance->set($balance);
        $this->cache->saveDeferred($this->lastTick);
        $this->cache->saveDeferred($this->balance);
        $this->cache->commit();
    }
private function saveState($lastTick, $balance)
    {
        $this->lastTick->set($lastTick);
        $this->balance->set($balance);
        $this->cache->saveDeferred($this->lastTick);
        $this->cache->saveDeferred($this->balance);
        $this->cache->commit();
    }
private function saveState ( $ lastTick , $ balance ) { $ this -> lastTick -> set ( $ lastTick ) ; $ this -> balance -> set ( $ balance ) ; $ this -> cache -> saveDeferred ( $ this -> lastTick ) ; $ this -> cache -> saveDeferred ( $ this -> balance ) ; $ this -> cache -> commit ( ) ; }
Method saves last tick and current balance into cache

@param integer $lastTick
@param float $balance
Method saves last tick and current balance into cache