()
| 22 | return c.Cache.Add(id, nil) |
| 23 | } |
| 24 | func (c *lruIdCache) GetOldest() (entity.Id, bool) { |
| 25 | id, _, present := c.Cache.GetOldest() |
| 26 | return id, present |
| 27 | } |
| 28 | |
| 29 | func (c *lruIdCache) GetOldestToNewest() (ids []entity.Id) { |
| 30 | return c.Keys() |
no outgoing calls