public function testItCanCacheAnArray() { $data = [new DateTime('now')]; $this->cache->set('cached.value.key', $data, 1); $this->assertEquals($data, $this->cache->get('cached.value.key')); }
public function testItReturnsTtlValueFromDefaultTtl() { $this->cache->defaultTtl(10); $this->cache->set('cache.key', 1); $this->assertEquals(1, $this->cache->get('cache.key')); }