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

Method Set

internal/storage/redis/thread-cache.go:35–44  ·  view source on GitHub ↗
(key string, dur time.Duration)

Source from the content-addressed store, hash-verified

33}
34
35func (ac *ThreadCache) Set(key string, dur time.Duration) error {
36 ctx, cancel := context.WithTimeout(context.Background(), ac.wt)
37 defer cancel()
38 err := ac.client.Set(ctx, key, true, dur).Err()
39 if err != nil {
40 return err
41 }
42
43 return nil
44}
45
46func (ac *ThreadCache) GetThreadStatus(key string) bool {
47 ctx, cancel := context.WithTimeout(context.Background(), ac.rt)

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected