get cache
public getCache ( ) : Xpressengine\Support\CacheInterface | ||
return | Xpressengine\Support\CacheInterface |
/** * set database table schema * * @param string $table table name * @param bool $force force * @return bool */ public function setSchemaCache($table, $force = false) { $cache = $this->coupler->getCache(); if ($force === true) { $cache->forget($table); } $schema = $this->getConnection('master')->getSchemaBuilder()->getColumnListing($table); if (count($schema) === 0) { return false; } $cache->put($table, $schema); return true; }