Comment correction
This commit is contained in:
parent
bf414c412e
commit
2056c799e1
3
cache.go
3
cache.go
|
@ -1109,8 +1109,7 @@ func (c *cache) DeleteLRU(numItems int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if lastTime > 0 {
|
if lastTime > 0 {
|
||||||
// We expire the items, but making it look .Expired(),
|
// Clean up the items
|
||||||
// so the janitor will clean it up for us
|
|
||||||
for i := 0; i < len(lastItems) && lastItems[i] != ""; i++ {
|
for i := 0; i < len(lastItems) && lastItems[i] != ""; i++ {
|
||||||
lastName := lastItems[i]
|
lastName := lastItems[i]
|
||||||
c.delete(lastName)
|
c.delete(lastName)
|
||||||
|
|
Loading…
Reference in New Issue