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

Method SetSetting

internal/op/cache.go:102–104  ·  view source on GitHub ↗

caches setting

(key string, setting *model.SettingItem)

Source from the content-addressed store, hash-verified

100
101// caches setting
102func (cm *CacheManager) SetSetting(key string, setting *model.SettingItem) {
103 cm.settingCache.Set(key, setting)
104}
105
106// cached setting
107func (cm *CacheManager) GetSetting(key string) (*model.SettingItem, bool) {

Calls 1

SetMethod · 0.45