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

Method Capacity

challenge-28/solution-template.go:218–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218func (c *ThreadSafeCache) Capacity() int {
219 // TODO: Implement thread-safe capacity operation
220 return 0
221}
222
223func (c *ThreadSafeCache) HitRate() float64 {
224 // TODO: Implement thread-safe hit rate operation

Callers 2

TestThreadSafeCacheFunction · 0.95
TestConcurrentStressFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestThreadSafeCacheFunction · 0.76
TestConcurrentStressFunction · 0.76