| 7 | ) |
| 8 | |
| 9 | type Cache interface { |
| 10 | Get(key string) (bool, []byte) |
| 11 | Set(key string, value []byte, TTL time.Duration) |
| 12 | GetSet(key string, set func() ([]byte, error), TTL time.Duration) ([]byte, error) |
| 13 | } |
| 14 | |
| 15 | func NewCache() Cache { |
| 16 | return &cache{ |
no outgoing calls
no test coverage detected