The Cache interface defines a cache for storing arbitrary data. The interface is designed to align with httpcache.Cache.
| 6 | // The Cache interface defines a cache for storing arbitrary data. The |
| 7 | // interface is designed to align with httpcache.Cache. |
| 8 | type Cache interface { |
| 9 | // Get retrieves the cached data for the provided key. |
| 10 | Get(key string) (data []byte, ok bool) |
| 11 | |
| 12 | // Set caches the provided data. |
| 13 | Set(key string, data []byte) |
| 14 | |
| 15 | // Delete deletes the cached data at the specified key. |
| 16 | Delete(key string) |
| 17 | } |
| 18 | |
| 19 | // NopCache provides a no-op cache implementation that doesn't actually cache anything. |
| 20 | var NopCache = new(nopCache) |
no outgoing calls
no test coverage detected