storeData() 공개 메소드

Same as store() but expanded parameters
또한 보기: store()
public storeData ( CacheData $data, number $lifetime ) : boolean
$data CacheData
$lifetime number
리턴 boolean true if no problem
예제 #1
0
 public function clear(CacheAbstract $cache)
 {
     $key = new CacheKey('clear', 'it');
     $cd = new CacheData($key, 789);
     $this->assertTrue($cache->storeData($cd));
     $cache->clear();
     try {
         $cache->get($key);
         $this->fail();
     } catch (Cachearium\Exceptions\NotCachedException $e) {
         $this->assertTrue(true);
     }
 }