Sulu\Component\Cache\CacheInterface::read PHP 메소드

read() 공개 메소드

Read content of cache.
public read ( ) : Serializable
리턴 Serializable
    public function read();

Usage Example

예제 #1
0
 /**
  * Returns system collections.
  *
  * @return array
  */
 private function getSystemCollections()
 {
     if (!$this->systemCollections) {
         if (!$this->cache->isFresh()) {
             $systemCollections = $this->buildSystemCollections($this->locale, $this->getUserId());
             $this->cache->write($systemCollections);
         }
         $this->systemCollections = $this->cache->read();
     }
     return $this->systemCollections;
 }
All Usage Examples Of Sulu\Component\Cache\CacheInterface::read