Interface CacheHandler

All Known Implementing Classes:
GitCacheHandler

public interface CacheHandler
Provides utilities for managing of repository caches.
Since:
11.0 it's a separate plugin module rather than extension of VCS repository.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteCaches(@NotNull Collection<String> keys, @NotNull com.opensymphony.xwork.ValidationAware feedback)
    Delete the specified caches, handling internal data updates etc.
    void
    deleteUnusedCaches(@NotNull com.opensymphony.xwork.ValidationAware feedback)
    Delete all unused caches.
    Collection of cache descriptions to be displayed in the admin UI.
    @NotNull String
    Unique key identifying this provider, for example module key.
  • Method Details

    • getKey

      @NotNull @NotNull String getKey()
      Unique key identifying this provider, for example module key.
      Returns:
      unique key identifying this provider
    • getCacheDescriptions

      @NotNull @NotNull Collection<CacheDescription> getCacheDescriptions()
      Collection of cache descriptions to be displayed in the admin UI.
      Returns:
      collection of all found caches of given type.
    • deleteCaches

      void deleteCaches(@NotNull @NotNull Collection<String> keys, @NotNull @NotNull com.opensymphony.xwork.ValidationAware feedback)
      Delete the specified caches, handling internal data updates etc.
      Parameters:
      keys - keys from CacheDescription.getKey()
      feedback - consumer of UI messages
    • deleteUnusedCaches

      void deleteUnusedCaches(@NotNull @NotNull com.opensymphony.xwork.ValidationAware feedback)
      Delete all unused caches.

      It's the responsibility of the implementing class to figure out which caches are currently unused and optionally delete such caches on remote agents.

      Parameters:
      feedback - consumer of UI messages