Interface CachingComponent

All Known Implementing Classes:
JiraComponents

@Internal public interface CachingComponent
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    clearUserCaches(ApplicationUser user)
    Deprecated.
    default void
    Clear all cached data associated with the specified user key.
  • Method Details

    • clearCaches

      void clearCaches()
    • clearUserCaches

      @Deprecated void clearUserCaches(@NotNull ApplicationUser user)
      Deprecated.
      Clear all cached data associated with the specified user. If the component doesn't store any data associated with user (i.e., user is not a part of a cache entry key), this method mustn't do anything. If the component cannot selectively clear entries for one user, it might clear more, but it must ensure that all related entries are cleared.
      Parameters:
      user - the user for which to clear the cached data
    • clearUserCaches

      default void clearUserCaches(@NotNull String userKey)
      Clear all cached data associated with the specified user key. If the component doesn't store any data associated with user (i.e., user is not a part of a cache entry key), this method mustn't do anything. If the component cannot selectively clear entries for one user, it might clear more, but it must ensure that all related entries are cleared. When default implementation is overridden it should guarantee that cache will be cleared even user associated with the key doesn't exist, that might happen in case of changing user key during anonymization for the user that was created prior Jira 8.3
      Parameters:
      userKey - the user key for which to clear the cached data