Lines Matching refs:this
83 $this->options = $options + [
89 $this->items = [];
90 $this->deferredItems = [];
91 $this->sysvKey = ftok(__FILE__, $this->options['proj']);
100 $this->loadItems();
101 return current($this->getItems([$key])); // @phpstan-ignore-line
110 $this->loadItems();
114 $items[$key] = $this->hasItem($key) ?
115 clone $this->items[$key] :
126 $this->loadItems();
127 return isset($this->items[$key]) && $this->items[$key]->isHit();
135 $this->items = [];
136 $this->deferredItems = [];
137 return $this->saveCurrentItems();
145 return $this->deleteItems([$key]);
153 if (!$this->hasLoadedItems) {
154 $this->loadItems();
158 unset($this->items[$key]);
160 return $this->saveCurrentItems();
168 if (!$this->hasLoadedItems) {
169 $this->loadItems();
172 $this->items[$item->getKey()] = $item;
173 return $this->saveCurrentItems();
181 $this->deferredItems[$item->getKey()] = $item;
190 foreach ($this->deferredItems as $item) {
191 if ($this->save($item) === false) {
195 $this->deferredItems = [];
207 $this->sysvKey,
208 $this->options['memsize'],
209 $this->options['perm']
214 $this->options['variableKey'],
215 $this->items
231 $this->sysvKey,
232 $this->options['memsize'],
233 $this->options['perm']
236 $data = @shm_get_var($shmid, $this->options['variableKey']);
238 $this->items = $data;
240 $this->items = [];
243 $this->hasLoadedItems = true;