Cache stores results of executed queries identified by Key
| 8 | |
| 9 | // Cache stores results of executed queries identified by Key |
| 10 | type Cache interface { |
| 11 | io.Closer |
| 12 | // TODO consider the value of Stats in future iterations. Maybe it is not needed? |
| 13 | Stats() Stats |
| 14 | Get(key *Key) (*CachedData, error) |
| 15 | Put(r io.Reader, ctMetadata ContentMetadata, key *Key) (time.Duration, error) |
| 16 | Name() string |
| 17 | } |
| 18 | |
| 19 | type ContentMetadata struct { |
| 20 | Length int64 |
no outgoing calls
no test coverage detected