Ejemplo n.º 1
0
 public function testExpiry()
 {
     $instance = new Container('Foo', array());
     $instance->setExpiryInSeconds(42);
     $this->assertSame(42, $instance->getExpiry());
 }
Ejemplo n.º 2
0
 /**
  * @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);
 }