public function getValue(string $key)
    {
        $driver = $this->getDriver();
        $value = $driver->get($key);
        if ($this->hasEventListeners('itemGetValue')) {
            $this->dispatchEvent('itemGetValue', new \BearFramework\App\Cache\ItemGetValueEventDetails($key, $value));
        }
        if ($this->hasEventListeners('itemRequest')) {
            $this->dispatchEvent('itemRequest', new \BearFramework\App\Cache\ItemRequestEventDetails($key));
        }
        return $value;
    }
public function getValue(string $key)
    {
        $driver = $this->getDriver();
        $value = $driver->get($key);
        if ($this->hasEventListeners('itemGetValue')) {
            $this->dispatchEvent('itemGetValue', new \BearFramework\App\Cache\ItemGetValueEventDetails($key, $value));
        }
        if ($this->hasEventListeners('itemRequest')) {
            $this->dispatchEvent('itemRequest', new \BearFramework\App\Cache\ItemRequestEventDetails($key));
        }
        return $value;
    }
public function getValue ( string $ key ) { $ driver = $ this -> getDriver ( ) ; $ value = $ driver -> get ( $ key ) ; if ( $ this -> hasEventListeners ( 'itemGetValue' ) ) { $ this -> dispatchEvent ( 'itemGetValue' , new \ BearFramework \ App \ Cache \ ItemGetValueEventDetails ( $ key , $ value ) ) ; } if ( $ this -> hasEventListeners ( 'itemRequest' ) ) { $ this -> dispatchEvent ( 'itemRequest' , new \ BearFramework \ App \ Cache \ ItemRequestEventDetails ( $ key ) ) ; } return $ value ; }
Returns the value of the cache item specified.

@param string $key The key of the cache item.
@return mixed The value of the cache item or null if not found.
Returns the value of the cache item specified .