public function testShouldReturnNullFlushRecord()
 {
     $this->repository->add('memcached-testing', 'couchbase', 60);
     $this->repository->decrement('memcached-testing-decrement', 100);
     $this->repository->increment('memcached-testing-increment', 100);
     $this->repository->flush();
     $this->assertNull($this->repository->get('memcached-testing'));
     $this->assertNull($this->repository->get('memcached-testing-decrement'));
     $this->assertNull($this->repository->get('memcached-testing-increment'));
 }
Ejemplo n.º 2
0
 /**
  * Decrement the value of an item in the cache.
  *
  * @param string $key
  * @param mixed  $value
  *
  * @return int|bool
  * @static
  */
 public static function decrement($key, $value = 1)
 {
     return \Illuminate\Cache\Repository::decrement($key, $value);
 }