NewThreadSafeCache wraps any cache implementation to make it thread-safe
(cache Cache)
| 186 | |
| 187 | // NewThreadSafeCache wraps any cache implementation to make it thread-safe |
| 188 | func NewThreadSafeCache(cache Cache) *ThreadSafeCache { |
| 189 | // TODO: Implement thread-safe wrapper constructor |
| 190 | return nil |
| 191 | } |
| 192 | |
| 193 | func (c *ThreadSafeCache) Get(key string) (interface{}, bool) { |
| 194 | // TODO: Implement thread-safe get operation |
no outgoing calls