function getTables() { $cacheKey = $this->cachePrefix . 'Tables'; $tables = Cache::get($cacheKey); if (!$tables) { $tables = $this->provider->getTables(); Cache::set($this->cachePrefix . 'Tables', $tables); } return $tables; }