MCPcopy Create free account
hub / github.com/RezaSi/go-interview-practice / Get

Method Get

challenge-28/solution-template.go:193–197  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

191}
192
193func (c *ThreadSafeCache) Get(key string) (interface{}, bool) {
194 // TODO: Implement thread-safe get operation
195 // Hint: Use read lock for better performance
196 return nil, false
197}
198
199func (c *ThreadSafeCache) Put(key string, value interface{}) {
200 // TODO: Implement thread-safe put operation

Callers 2

TestThreadSafeCacheFunction · 0.95
TestConcurrentStressFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestThreadSafeCacheFunction · 0.76
TestConcurrentStressFunction · 0.76