Close closes the instance of persistent cache possibly waiting for at least one sweep to complete.
(_ context.Context)
| 208 | |
| 209 | // Close closes the instance of persistent cache possibly waiting for at least one sweep to complete. |
| 210 | func (c *PersistentCache) Close(_ context.Context) { |
| 211 | if c == nil { |
| 212 | return |
| 213 | } |
| 214 | |
| 215 | releasable.Released("persistent-cache", c) |
| 216 | } |
| 217 | |
| 218 | // A contentMetadataHeap implements heap.Interface and holds blob.Metadata. |
| 219 | // |