fixed documentation

This commit is contained in:
Annika Hannig 2021-03-25 21:47:56 +01:00
parent 18a4b67748
commit a7faf644b0
No known key found for this signature in database
GPG Key ID: 62E226E47DDCE58D

View File

@ -5,12 +5,14 @@ import (
)
/*
Use a least recently used caching strategy:
LRUMap is a cache map which uses
a least recently used caching strategy:
Store last access in map, retrieve least recently
used key.
*/
type LRUMap map[string]time.Time
// LRU retrievs the least recently used key
func (lrumap LRUMap) LRU() string {
t := time.Now()
key := ""