func (s *LRUCache[K, V]) GetValue(key K) (res V, found bool) {
	listElement, ok := s.hashMap[key]
	if !ok {
		return res, false
	}

	s.linkedList.MoveToFront(listElement)
	lruEntry := listElement.Value.(*LRUEntry[K, V])
	return lruEntry.Value, true
}
// GetValue returns value associated with the key
GetValue returns value associated with the key
// GetValue returns value associated with the key
func (s *LRUCache[K, V]) GetValue(key K) (res V, found bool) {
	listElement, ok := s.hashMap[key]
	if !ok {
		return res, false
	}
	s.linkedList.MoveToFront(listElement)
	lruEntry := listElement.Value.(*LRUEntry[K, V])
	return lruEntry.Value, true
}
func ( s * LRUCache [ K , V ] ) GetValue ( key K ) ( res V , found bool ) { listElement , ok := s . hashMap [ key ] if ! ok { return res , false } s . linkedList . MoveToFront ( listElement ) lruEntry := listElement . Value . ( * LRUEntry [ K , V ] ) return lruEntry . Value , true }
GetValue returns value associated with the key
GetValue returns value associated with the key