public function testExpiry() { $instance = new Container('Foo', array()); $instance->setExpiryInSeconds(42); $this->assertSame(42, $instance->getExpiry()); }
/** * @since 1.0 * * @param Container $container */ public function save(Container $container) { $this->internalCache->save($container->getId(), $container->getData(), $container->getExpiry()); $this->cache->save($container->getId(), serialize($container->getData()), $container->getExpiry()); unset($container); }