Beispiel #1
0
 public function __construct(ItemPool $pool, $key)
 {
     $pool->validateKey($key);
     $this->pool = $pool;
     $this->adapter = $pool->getAdapter();
     $this->key = $key;
     $this->loaded = false;
     $this->value = null;
     $this->lifeTime = null;
 }
Beispiel #2
0
 public function __unset($key)
 {
     $this->pool->deleteItem($key);
 }