Phalcon\Mvc\Model\MetaData\Base::read PHP 메소드

read() 공개 메소드

public read ( string $key ) : array
$key string
리턴 array
    public function read($key)
    {
        return $this->getCacheBackend()->get($this->prepareKey($key), $this->options['lifetime']);
    }

Usage Example

예제 #1
0
 /**
  * {@inheritdoc}
  * @param  string $key
  * @return array
  */
 public function read($key)
 {
     return parent::read($key) ?: null;
 }