Class CacheManager

java.lang.Object
com.mwdle.bitwarden.CacheManager

public final class CacheManager extends Object
A singleton that manages the lifecycle, background loading, and caching of Bitwarden item metadata.
  • Method Details

    • getInstance

      @NonNull public static CacheManager getInstance()
      Returns:
      the singleton instance of this manager
    • refreshCache

      public void refreshCache()
      Triggers a non-destructive, asynchronous refresh of the cache.
    • invalidateCache

      public void invalidateCache()
      Invalidates the cache.
    • getMetadata

      @NonNull public List<BitwardenItemMetadata> getMetadata()
      Returns:
      the cached list of metadata, or an empty list if retrieval fails