예제 #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testNegativeIncrement()
 {
     $this->cache->increment('test');
     $this->cache->increment('test', -100);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function increment($key, $value = 1)
 {
     $newValue = $this->cache->increment($key, $value);
     $this->hot[$key] = $newValue;
     return $newValue;
 }