Cache - Defines an interface for a generic cache.
| 2 | |
| 3 | // Cache - Defines an interface for a generic cache. |
| 4 | type Cache interface { |
| 5 | Get(key string) (any, bool) |
| 6 | Set(key string, value any, cost int64) bool |
| 7 | Wait() |
| 8 | Close() |
| 9 | } |
| 10 | |
| 11 | // noopCache - |
| 12 | type noopCache struct{} |
no outgoing calls
no test coverage detected