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

Method Put

challenge-28/solution-template.go:199–202  ·  view source on GitHub ↗
(key string, value interface{})

Source from the content-addressed store, hash-verified

197}
198
199func (c *ThreadSafeCache) Put(key string, value interface{}) {
200 // TODO: Implement thread-safe put operation
201 // Hint: Use write lock
202}
203
204func (c *ThreadSafeCache) Delete(key string) bool {
205 // TODO: Implement thread-safe delete operation

Callers 2

TestThreadSafeCacheFunction · 0.95
TestConcurrentStressFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestThreadSafeCacheFunction · 0.76
TestConcurrentStressFunction · 0.76