Cml\Db\Base::getCacheVer PHP Метод

getCacheVer() публичный Метод

根据表名获取cache版本号
public getCacheVer ( string $table ) : mixed
$table string
Результат mixed
    public function getCacheVer($table)
    {
        if (!$this->openCache) {
            return '';
        }
        $version = Model::getInstance()->cache()->get($this->conf['mark'] . '_db_cache_version_' . $table);
        if (!$version) {
            $version = microtime(true);
            Model::getInstance()->cache()->set($this->conf['mark'] . '_db_cache_version_' . $table, $version, $this->conf['cache_expire']);
        }
        return $version;
    }