public function get($key, $default = false)
    {
        $this->initializeOnDemand();

        if ($this->has($key)) {
            return $this->cache[$key][ConstProviderInterface::CACHE_PARAM_VALUE];
        } else {
            return $default;
        }
    }
public function get($key, $default = false)
    {
        $this->initializeOnDemand();

        if ($this->has($key)) {
            return $this->cache[$key][ConstProviderInterface::CACHE_PARAM_VALUE];
        } else {
            return $default;
        }
    }
public function get ( $ key , $ default = false ) { $ this -> initializeOnDemand ( ) ; if ( $ this -> has ( $ key ) ) { return $ this -> cache [ $ key ] [ ConstProviderInterface :: CACHE_PARAM_VALUE ] ; } else { return $ default ; } }
Reads cache item by its key

@param string $key
@param mixed $default Default value to be returned in $key doesn't exist
@return mixed
Reads cache item by its key