cached setting group
(key string)
| 120 | |
| 121 | // cached setting group |
| 122 | func (cm *CacheManager) GetSettingGroup(key string) ([]model.SettingItem, bool) { |
| 123 | if data, exists := cm.settingCache.Get(key); exists { |
| 124 | if settings, ok := data.([]model.SettingItem); ok { |
| 125 | return settings, true |
| 126 | } |
| 127 | } |
| 128 | return nil, false |
| 129 | } |
| 130 | |
| 131 | func (cm *CacheManager) SetStorageDetails(storage driver.Driver, details *model.StorageDetails) { |
| 132 | if storage.Config().NoCache { |
no test coverage detected