// NewLruCache create a new LRU cache.
NewLruCache create a new LRU cache.
// NewLruCache create a new LRU cache .
func NewLruCache(capacity int) *LruCache {
	lru := &LruCache{}
	if capacity > 0 {
		lru.capacity = capacity
		lru.cacheMap = make(map[string]*list.Element)
		lru.cacheList = list.New()
	}
	return lru
}
func NewLruCache ( capacity int ) * LruCache { lru := & LruCache { } if capacity > 0 { lru . capacity = capacity lru . cacheMap = make ( map [ string ] * list . Element ) lru . cacheList = list . New ( ) } return lru }
NewLruCache create a new LRU cache.
NewLruCache create a new LRU cache .