Name implements the Handler interface.
()
| 183 | |
| 184 | // Name implements the Handler interface. |
| 185 | func (c *Cache) Name() string { return "cache" } |
| 186 | |
| 187 | // getIfNotStale returns an item if it exists in the cache and has not expired. |
| 188 | func (c *Cache) getIfNotStale(now time.Time, state request.Request, server string) *item { |