public function deserialize($prefix, array $data)
 {
     $data = ArrayTools::stripPrefixFromArrayKeys($prefix, $data);
     $data = array_map(function ($cacheItem) {
         return CacheItem::decode($cacheItem);
     }, $data);
     /** @var CacheItem[] $data */
     foreach ($data as &$item) {
         if ($item->isExpired()) {
             $item = null;
             continue;
         }
         if ($this->tagVersions->isAnyTagExpired($item->getTags())) {
             $item = null;
             continue;
         }
         $value = $item->getValue();
         $item = $this->isSimpleType($value) ? $value : $this->coderManager->decode($value);
     }
     return $data;
 }
 public function testStripPrefixFromArrayKeys()
 {
     $values = ['prefix:aaa' => '111', 'prefix:bbb' => '222'];
     $prefixedValues = ArrayTools::stripPrefixFromArrayKeys('prefix:', $values);
     $this->assertEquals(['aaa' => '111', 'bbb' => '222'], $prefixedValues);
 }