MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / NewRelationCache

Function NewRelationCache

internal/repository/cache/relation.go:27–29  ·  view source on GitHub ↗
(client redis.Cmdable)

Source from the content-addressed store, hash-verified

25}
26
27func NewRelationCache(client redis.Cmdable) RelationCache {
28 return &relationCache{client: client}
29}
30
31func (c *relationCache) GetCache(ctx context.Context, key string) ([]domain.Relation, error) {
32 // 从Redis获取数据

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected