CachedStorage caches the requests that are going to backend and tries to lower the load on the backend
| 142 | // CachedStorage caches the requests that are going to backend and tries to |
| 143 | // lower the load on the backend |
| 144 | type CachedStorage struct { |
| 145 | cache KeyPairStorage |
| 146 | backend KeyPairStorage |
| 147 | } |
| 148 | |
| 149 | // NewCachedStorage creates a new CachedStorage |
| 150 | func NewCachedStorage(backend KeyPairStorage, cache KeyPairStorage) *CachedStorage { |
nothing calls this directly
no outgoing calls
no test coverage detected