Apply a RWMutex lock to a cache directory. A global map of cache locks is maintained, keyed by the absolute path to the cache directory, so multiple cache instances can coexist and share locks if they use the same cache root. Currently, the lock only prevents multiple concurrent `shrink()` operations when multiple cache instances share the same root. |
||
|---|---|---|
| .. | ||
| cache.go | ||
| cache_test.go | ||
| dnfjson.go | ||
| dnfjson_test.go | ||