Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function get($id)
 {
     $cachedData = $this->storageCache->get($id);
     if (null !== $cachedData) {
         return $cachedData;
     }
     $sourceData = $this->sourceStorage->get($id);
     $this->storageCache->set($id, $sourceData);
     return $sourceData;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function get($id)
 {
     $data = $this->storage->get($id);
     return $this->reverseTransform($data);
 }