{"modulePath":"github.com/Flagsmith/flagsmith-cli","version":"v1.1.1-0.20260730103710-c6179254e1e8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cache\n\nPackage cache stores display names per instance. Strictly cosmetic — never consulted for authorisation or resolution; a miss degrades to the bare ID/key.\n\n## Functions\n\n```go\nfunc Merge(apiURL string, update *Names) error\n```\nMerge folds update into the cached names for an instance.\n\n```go\nfunc Path() (string, error)\n```\n\n## Types\n\n```go\ntype Names struct {\n\tOrganisations map[string]string `json:\"organisations,omitempty\"`\n\tProjects      map[string]string `json:\"projects,omitempty\"`\n\tEnvironments  map[string]string `json:\"environments,omitempty\"`\n\tSegments      map[string]string `json:\"segments,omitempty\"`\n}\n```\nNames maps identifiers to display names for one Flagsmith instance. Map keys are stringified IDs (organisations, projects, segments) or client-side keys (environments).\n\n```go\nfunc Load(apiURL string) *Names\n```\nLoad returns the cached names for an instance; empty (never nil) on any miss or error — the cache is best-effort by design.\n\n","path":"github.com/Flagsmith/flagsmith-cli/internal/cache","name":"cache","synopsis":"Package cache stores display names per instance.","isRedistributable":true}
