MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / GetAccessStatus

Method GetAccessStatus

internal/storage/redis/access-cache.go:52–59  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

50}
51
52func (ac *AccessCache) GetAccessStatus(key string) bool {
53 ctx, cancel := context.WithTimeout(context.Background(), ac.rt)
54 defer cancel()
55
56 result := ac.client.Get(ctx, key)
57
58 return result.Err() != redis.Nil
59}

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected