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

Method computeHashKey

internal/cache/cache.go:24–26  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

22}
23
24func (c *Cache) computeHashKey(value string) string {
25 return hasher.Hash(value)
26}
27
28func (c *Cache) StoreBytes(key string, value []byte, ttl time.Duration) error {
29 return c.store.Set(c.computeHashKey(key), value, ttl)

Callers 2

StoreBytesMethod · 0.95
GetBytesMethod · 0.95

Calls 1

HashFunction · 0.92

Tested by

no test coverage detected