@@ 293-300 (lines=8) @@ | ||
290 | { |
|
291 | $key = $this->normalizeCacheKey($key); |
|
292 | $cacheItemPool = $this->sdk->getCacheItemPool(); |
|
293 | if (isset($cacheItemPool)) { |
|
294 | $cacheKey = $this->sdk->getCachePrefix() . $key; |
|
295 | if ($cacheItemPool->hasItem($cacheKey)) { |
|
296 | $cacheItem = $cacheItemPool->getItem($cacheKey); |
|
297 | $cacheData = $cacheItem->get(); |
|
298 | return $cacheData; |
|
299 | } |
|
300 | } |
|
301 | ||
302 | return false; |
|
303 | } |
|
@@ 315-323 (lines=9) @@ | ||
312 | { |
|
313 | $key = $this->normalizeCacheKey($key); |
|
314 | $cacheItemPool = $this->sdk->getCacheItemPool(); |
|
315 | if (isset($cacheItemPool)) { |
|
316 | $cacheKey = $this->sdk->getCachePrefix() . $key; |
|
317 | ||
318 | if (!$cacheItemPool->hasItem($cacheKey)) { |
|
319 | $cacheItem = $cacheItemPool->getItem($cacheKey); |
|
320 | $cacheItem->set($value); |
|
321 | $cacheItemPool->save($cacheItem); |
|
322 | } |
|
323 | } |
|
324 | } |
|
325 | ||
326 | /** |