Prado\Data\SqlMap\TSqlMapConfig::cacheSqlMapManager PHP Method

cacheSqlMapManager() protected method

Saves the current SqlMap manager to cache.
protected cacheSqlMapManager ( $manager ) : boolean
return boolean true if SqlMap manager was cached, false otherwise.
    protected function cacheSqlMapManager($manager)
    {
        if ($this->getEnableCache()) {
            $cache = $this->getApplication()->getCache();
            if ($cache !== null) {
                $dependencies = null;
                if ($this->getApplication()->getMode() !== TApplicationMode::Performance) {
                    $dependencies = $manager->getCacheDependencies();
                }
                return $cache->set($this->getCacheKey(), $manager, 0, $dependencies);
            }
        }
        return false;
    }