get() public method

Get value by key
public get ( $key ) : array | null
$key
return array | null
Example #1
0
 public function testDelete()
 {
     $this->cache->set('php', 'PHP: Hypertext Processor', 1);
     $this->assertEquals('PHP: Hypertext Processor', $this->cache->get('php'));
     $this->cache->delete('php');
     $this->assertEmpty($this->cache->get('php'));
 }