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

Method StoreBytes

internal/cache/cache.go:28–30  ·  view source on GitHub ↗
(key string, value []byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

26}
27
28func (c *Cache) StoreBytes(key string, value []byte, ttl time.Duration) error {
29 return c.store.Set(c.computeHashKey(key), value, ttl)
30}
31
32func (c *Cache) GetBytes(key string) ([]byte, error) {
33 return c.store.GetBytes(c.computeHashKey(key))

Callers

nothing calls this directly

Calls 2

computeHashKeyMethod · 0.95
SetMethod · 0.65

Tested by

no test coverage detected