~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~int | ~int8 | ~int16 | ~int32 | ~int64 ~float32 | ~float64 | ~string
Use the main.go file and play with it to understand the cache package.
NewLRU:=cache.NewLRUCache[string,int](5)
//where the key is of type string and value is of type int.
NewLRUCache takes an int for initialising the cache by specifying its max capacity.