public function retrieveOrStore($caller, array $parameters = [])
    {
        $cacheKey = $this->cacheKey($caller, $parameters);

        return $this->retrieve($cacheKey) ?: $this->store($caller, $parameters);
    }
public function retrieveOrStore($caller, array $parameters = [])
    {
        $cacheKey = $this->cacheKey($caller, $parameters);

        return $this->retrieve($cacheKey) ?: $this->store($caller, $parameters);
    }
public function retrieveOrStore ( $ caller , array $ parameters = [ ] ) { $ cacheKey = $ this -> cacheKey ( $ caller , $ parameters ) ; return $ this -> retrieve ( $ cacheKey ) ? : $ this -> store ( $ caller , $ parameters ) ; }
Retrieve or store and return data from cache.

@param string $caller
@param array  $parameters

@return mixed
Retrieve or store and return data from cache .