Storage implements the "proxycache" blob storage.
| 51 | |
| 52 | // Storage implements the "proxycache" blob storage. |
| 53 | type Storage struct { |
| 54 | origin blobserver.Storage |
| 55 | cache blobserver.Storage |
| 56 | |
| 57 | debug bool |
| 58 | maxCacheBytes int64 |
| 59 | |
| 60 | mu sync.Mutex // guards following |
| 61 | lru *lru.Cache |
| 62 | cacheBytes int64 |
| 63 | } |
| 64 | |
| 65 | var ( |
| 66 | _ blobserver.Storage = (*Storage)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected