cached setting
(key string)
| 105 | |
| 106 | // cached setting |
| 107 | func (cm *CacheManager) GetSetting(key string) (*model.SettingItem, bool) { |
| 108 | if data, exists := cm.settingCache.Get(key); exists { |
| 109 | if setting, ok := data.(*model.SettingItem); ok { |
| 110 | return setting, true |
| 111 | } |
| 112 | } |
| 113 | return nil, false |
| 114 | } |
| 115 | |
| 116 | // cache setting groups |
| 117 | func (cm *CacheManager) SetSettingGroup(key string, settings []model.SettingItem) { |
no test coverage detected