protected function getCachedAttribute($key)
    {
        $cachedAttributes = $this->getCache()->get($this->getEntityKeyValue());

        if (array_key_exists($key, $cachedAttributes)) {
            return $cachedAttributes[$key];
        }
    }
protected function getCachedAttribute($key)
    {
        $cachedAttributes = $this->getCache()->get($this->getEntityKeyValue());

        if (array_key_exists($key, $cachedAttributes)) {
            return $cachedAttributes[$key];
        }
    }
protected function getCachedAttribute ( $ key ) { $ cachedAttributes = $ this -> getCache ( ) -> get ( $ this -> getEntityKeyValue ( ) ) ; if ( array_key_exists ( $ key , $ cachedAttributes ) ) { return $ cachedAttributes [ $ key ] ; } }
Return a single attribute from the cache.

@param string $key

@return mixed|null
Return a single attribute from the cache .