MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetSettingGroup

Method GetSettingGroup

internal/op/cache.go:122–129  ·  view source on GitHub ↗

cached setting group

(key string)

Source from the content-addressed store, hash-verified

120
121// cached setting group
122func (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
131func (cm *CacheManager) SetStorageDetails(storage driver.Driver, details *model.StorageDetails) {
132 if storage.Config().NoCache {

Callers 4

GetSettingItemsFunction · 0.80
GetPublicSettingItemsFunction · 0.80
GetSettingItemsByGroupFunction · 0.80
GetSettingItemsInGroupsFunction · 0.80

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected