/* Decoded by unphp.net */ get_dbh(); $db->query('DELETE FROM cache'); $cache = new cube_cache_db(1, 'test', 60); // Set and get cache record $data = ['data']; $cache->set('test', $data); $this->assertSame($data, $cache->get('test')); $cache->close(); $cache = new cube_cache_db(1, 'test', 60); $this->assertSame($data, $cache->get('test')); // Remove cached record $cache->remove('test'); $this->assertNull($cache->get('test')); $cache->close(); $cache = new cube_cache_db(1, 'test', 60); $this->assertNull($cache->get('test')); // Call expunge methods $cache->expunge(); } } ?>