| @@ 86-97 (lines=12) @@ | ||
| 83 | * |
|
| 84 | * @return array|null |
|
| 85 | */ |
|
| 86 | public function loadEntityMap($objectManagerName) |
|
| 87 | { |
|
| 88 | $key = $this->getCacheKeyForObjectManagerName($objectManagerName); |
|
| 89 | ||
| 90 | $cache = $this->getCache(); |
|
| 91 | ||
| 92 | if (false === $cache->contains($key)) { |
|
| 93 | return false; |
|
| 94 | } |
|
| 95 | ||
| 96 | return $cache->fetch($key); |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * Удаляет карту сущностей |
|
| @@ 106-115 (lines=10) @@ | ||
| 103 | * |
|
| 104 | * @return void |
|
| 105 | */ |
|
| 106 | public function deleteEntityMap($objectManagerName) |
|
| 107 | { |
|
| 108 | $key = $this->getCacheKeyForObjectManagerName($objectManagerName); |
|
| 109 | ||
| 110 | $cache = $this->getCache(); |
|
| 111 | ||
| 112 | if (false === $cache->contains($key)) { |
|
| 113 | $cache->delete($key); |
|
| 114 | } |
|
| 115 | } |
|
| 116 | ||
| 117 | /** |
|
| 118 | * Получает ключ для кеширования карты сущностей |
|