MCPcopy
hub / github.com/dosco/graphjin / Set

Method Set

serv/mcp_cursor_cache.go:19–19  ·  view source on GitHub ↗

Set stores a cursor and returns a short numeric ID

(ctx context.Context, cursor string)

Source from the content-addressed store, hash-verified

17type CursorCache interface {
18 // Set stores a cursor and returns a short numeric ID
19 Set(ctx context.Context, cursor string) (uint64, error)
20
21 // Get retrieves a cursor by its numeric ID
22 Get(ctx context.Context, id uint64) (string, error)

Callers 1

SetMethod · 0.65

Implementers 5

RedisCursorCacheserv/mcp_cursor_cache.go
MemoryCursorCacheserv/mcp_cursor_cache.go
fakeRuntimeRedisserv/runtime_events_test.go
MemoryCacheserv/cache_memory.go
RedisCacheserv/cache_redis.go

Calls

no outgoing calls

Tested by

no test coverage detected