public function testExpireAll() { $this->obj->put('fruit', 'apple', 30); $this->obj->put('fruit', 'peach', 30); $this->obj->expireAll(); $result = $this->obj->get('fruit'); $this->assertFalse($result); }
/** * Stores the slug with members to cache. * * @param string $slug * @param array $members */ private function addSlugToCache($slug, array $members = array()) { $this->cache->put(sprintf('active-edits-%s', $slug), $members, 60); }