MCPcopy Index your code
hub / github.com/bytebase/bytebase / getSettingCacheKey

Function getSettingCacheKey

backend/store/store.go:147–149  ·  view source on GitHub ↗
(workspace string, name storepb.SettingName)

Source from the content-addressed store, hash-verified

145}
146
147func getSettingCacheKey(workspace string, name storepb.SettingName) string {
148 return fmt.Sprintf("workspaces/%s/settings/%s", workspace, name.String())
149}
150
151// formatGroupName returns "groups/{email}" if email is set, otherwise "groups/{id}".
152// This mirrors utils.FormatGroupName but avoids a circular import.

Callers 4

GetSettingMethod · 0.85
ListSettingsMethod · 0.85
UpsertSettingMethod · 0.85
DeleteSettingMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected