diff --git a/server/common/cache.go b/server/common/cache.go index 8df88be1..4b453f6e 100644 --- a/server/common/cache.go +++ b/server/common/cache.go @@ -86,9 +86,9 @@ func NewKeyValueStore() KeyValueStore { func (this *KeyValueStore) Get(key string) interface{} { var val interface{} - this.RLock() + this.Lock() val = this.cache[key] - this.RUnlock() + this.Unlock() return val }