+ [refac] add cache configuration of table stakeholder.
This commit is contained in:
+9
-8
@@ -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']];
|
||||
|
||||
Reference in New Issue
Block a user