1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

fixed documentation

This commit is contained in:
Annika Hannig
2021-03-25 21:47:56 +01:00
parent 18a4b67748
commit a7faf644b0

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 := ""