If a value has a Size() method we use this to determine its size, otherwise 1.
| 56 | |
| 57 | // If a value has a Size() method we use this to determine its size, otherwise 1. |
| 58 | type SizedValue interface { |
| 59 | // Size returns how big this value is. If you want to just track |
| 60 | // the cache by number of objects, you may return the size as 1. |
| 61 | Size() int |
| 62 | } |
| 63 | |
| 64 | type Closer interface { |
| 65 | Close() |
no outgoing calls
no test coverage detected