func (lru *lruCache) Set(key string, value Value) {
	lru.Lock()
	defer lru.Unlock()

	lru.cache[key] = &entry{value: value, added: time.Now()}

	// Remove from the evict list if an entry already existed
	lru.removeFromEvictList(key)

	lru.evictList.PushBack(key)
	lru.purgeSize()
}
func (lru *lruCache) Set(key string, value Value) {
	lru.Lock()
	defer lru.Unlock()

	lru.cache[key] = &entry{value: value, added: time.Now()}

	
	lru.removeFromEvictList(key)

	lru.evictList.PushBack(key)
	lru.purgeSize()
}
func ( lru * lruCache ) Set ( key string , value Value ) { lru . Lock ( ) defer lru . Unlock ( ) lru . cache [ key ] = & entry { value : value , added : time . Now ( ) } // Remove from the evict list if an entry already existed lru . removeFromEvictList ( key ) lru . evictList . PushBack ( key ) lru . purgeSize ( ) }
// Set sets the key-value pair in the cache
Set sets the key - value pair in the cache