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')); }
/** * Increment the value of an item in the cache. * * @param string $key * @param mixed $value * * @return int|bool * @static */ public static function increment($key, $value = 1) { return \Illuminate\Cache\Repository::increment($key, $value); }