set($cacheKey, $data, 900); } protected function getFromCache($key = '') { $cacheKey = str_replace("\\", "_", \get_called_class() . "_$key"); $cachedData = self::$cache->get($cacheKey); return $cachedData; } }