MCPcopy
hub / github.com/usememos/memos / Get

Method Get

store/cache/cache.go:19–19  ·  view source on GitHub ↗

Get retrieves a value from the cache.

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

17
18 // Get retrieves a value from the cache.
19 Get(ctx context.Context, key string) (any, bool)
20
21 // Delete removes a value from the cache.
22 Delete(ctx context.Context, key string)

Callers 15

GetUserSettingMethod · 0.65
GetInstanceSettingMethod · 0.65
GetUserMethod · 0.65
TestCacheBasicOperationsFunction · 0.65
TestCacheEvictionFunction · 0.65
TestCacheConcurrencyFunction · 0.65
newMockServerFunction · 0.65
TestGenerateFromAudioFunction · 0.65
TestTranscribeFunction · 0.65
GetImageFunction · 0.65
GetHTMLMetaFunction · 0.65
enrichSiteMetaFunction · 0.65

Implementers 1

Cachestore/cache/cache.go

Calls

no outgoing calls

Tested by 15

TestCacheBasicOperationsFunction · 0.52
TestCacheEvictionFunction · 0.52
TestCacheConcurrencyFunction · 0.52
newMockServerFunction · 0.52
TestGenerateFromAudioFunction · 0.52
TestTranscribeFunction · 0.52
TestCORSMiddlewareFunction · 0.52