Clear will clear the selected entity, if any
(repo *cache.RepoCache, namespace string)
| 109 | |
| 110 | // Clear will clear the selected entity, if any |
| 111 | func Clear(repo *cache.RepoCache, namespace string) error { |
| 112 | filename := selectFileName(namespace) |
| 113 | return repo.LocalStorage().Remove(filename) |
| 114 | } |
| 115 | |
| 116 | func selected[CacheT cache.CacheEntity](repo *cache.RepoCache, resolver Resolver[CacheT], namespace string) (*CacheT, error) { |
| 117 | filename := selectFileName(namespace) |