Cache::get PHP Method

get() public method

Retrieve value of cache entry
public get ( $key ) : mixed | FALSE
$key string
return mixed | FALSE
    function get($key)
    {
        return $this->dsn && $this->exists($key, $data) ? $data : FALSE;
    }

Usage Example

Example #1
0
 /**
  * @param array|bool $dataAcl
  * @dataProvider aclDataProvider
  */
 public function testHasWithAcl($dataAcl)
 {
     $this->initAcl(is_array($dataAcl) ? serialize($dataAcl) : $dataAcl);
     $this->cacheConfig->expects($this->never())->method('test');
     $this->model->get();
     $this->assertTrue($this->model->has());
 }
All Usage Examples Of Cache::get