| 77 | } |
| 78 | |
| 79 | type cache struct { |
| 80 | defaultExpiration time.Duration |
| 81 | items map[string]Item |
| 82 | mu sync.RWMutex |
| 83 | onEvicted func(string, any) |
| 84 | janitor *janitor |
| 85 | } |
| 86 | |
| 87 | // Scan all items to get a specified number of matching regexp key. |
| 88 | func (c *cache) Scan(m string, n int) ([]string, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected