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

Method Set

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

Set adds a value to the cache with the default TTL.

(ctx context.Context, key string, value any)

Source from the content-addressed store, hash-verified

11type Interface interface {
12 // Set adds a value to the cache with the default TTL.
13 Set(ctx context.Context, key string, value any)
14
15 // SetWithTTL adds a value to the cache with a custom TTL.
16 SetWithTTL(ctx context.Context, key string, value any, ttl time.Duration)

Callers 15

UpsertUserSettingMethod · 0.65
ListUserSettingsMethod · 0.65
GetUserSettingMethod · 0.65
UpsertInstanceSettingMethod · 0.65
ListInstanceSettingsMethod · 0.65
GetInstanceAISettingMethod · 0.65

Implementers 1

Cachestore/cache/cache.go

Calls

no outgoing calls

Tested by 15

TestCacheBasicOperationsFunction · 0.52
TestCacheEvictionFunction · 0.52
TestCacheConcurrencyFunction · 0.52
TestEvictionCallbackFunction · 0.52
newMockServerFunction · 0.52
TestGenerateFromAudioFunction · 0.52
TestTranscribeFunction · 0.52
TestCORSMiddlewareFunction · 0.52
postMCPHTTPFunction · 0.52
TestIsAllowedOriginFunction · 0.52
TestStripImageExifFunction · 0.52