+ [refac] add cache configuration of table stakeholder.

This commit is contained in:
liugang
2024-12-30 09:42:38 +08:00
committed by 朱金勇
parent 85964e48c7
commit 9ead5ecaa9
+9 -8
View File
@@ -19,14 +19,15 @@ $config->cache->client->enable = false; // 是否开启客户端缓存。Enable
// The KEY_FIELD is the field of the table which is used to generate the key of the cache. It must be unique in the table.
$config->cache->raw = [];
$config->cache->raw[TABLE_CONFIG] = 'id';
$config->cache->raw[TABLE_BUILD] = 'id';
$config->cache->raw[TABLE_MODULE] = 'id';
$config->cache->raw[TABLE_PRODUCT] = 'id';
$config->cache->raw[TABLE_PROJECT] = 'id';
$config->cache->raw[TABLE_RELEASE] = 'id';
$config->cache->raw[TABLE_USER] = 'account';
$config->cache->raw[TABLE_USERVIEW] = 'account';
$config->cache->raw[TABLE_CONFIG] = 'id';
$config->cache->raw[TABLE_BUILD] = 'id';
$config->cache->raw[TABLE_MODULE] = 'id';
$config->cache->raw[TABLE_PRODUCT] = 'id';
$config->cache->raw[TABLE_PROJECT] = 'id';
$config->cache->raw[TABLE_RELEASE] = 'id';
$config->cache->raw[TABLE_STAKEHOLDER] = 'id';
$config->cache->raw[TABLE_USER] = 'account';
$config->cache->raw[TABLE_USERVIEW] = 'account';
$config->cache->res = [];
$config->cache->res[TABLE_MODULE][] = ['name' => 'CACHE_MODULE_TREE', 'fields' => ['type', 'root', 'branch']];