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:
@ -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
|
Store last access in map, retrieve least recently
|
||||||
used key.
|
used key.
|
||||||
*/
|
*/
|
||||||
type LRUMap map[string]time.Time
|
type LRUMap map[string]time.Time
|
||||||
|
|
||||||
|
// LRU retrievs the least recently used key
|
||||||
func (lrumap LRUMap) LRU() string {
|
func (lrumap LRUMap) LRU() string {
|
||||||
t := time.Now()
|
t := time.Now()
|
||||||
key := ""
|
key := ""
|
||||||
|
Reference in New Issue
Block a user