InMemoryDecoratedCacheTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move in-memory caches to persistent-cache project

    • -196
    • +0
    ./InMemoryDecoratedCacheTest.groovy
  1. … 50 more files in changeset.
Move some of persistent-cache out of core

+review REVIEW-6562

  1. … 127 more files in changeset.
Added `CacheAccess.withFileLock()` to allow an action to run while the current process is holding the lock for a cache, as an alternative and eventual replacement for `useCache()` which also blocks all other threads for the current process and other processes.

    • -24
    • +0
    ./InMemoryDecoratedCacheTest.groovy
  1. … 11 more files in changeset.
Fixed `InMemoryDecoratedCache.get(key, producer)` to work correctly after the entry has been removed.

    • -0
    • +57
    ./InMemoryDecoratedCacheTest.groovy
  1. … 1 more file in changeset.
Added `PersistentIndexedCache.get(key, producer)` overload, allowing the production of an entry if it is not present. Handles multiple threads attempting to produce the same entry, including threads in other build processes.

    • -0
    • +163
    ./InMemoryDecoratedCacheTest.groovy
  1. … 9 more files in changeset.