Interface GbCacheManager

All Known Implementing Classes:
FileCachingManagerImpl, InMemoryCachingManagerImpl

public interface GbCacheManager
  • Method Details

    • saveContent

      void saveContent(String key, String data)
    • loadCache

      String loadCache(String key)
    • clearCache

      void clearCache()
    • getLastUpdatedMillis

      default Long getLastUpdatedMillis(String key)
      Returns when the cached value was last updated, in epoch milliseconds.

      The optional background feature refresh interval uses this timestamp to decide whether cached features are fresh enough to skip a network refresh. Custom cache implementations may return null when timestamp tracking is unsupported or when the key does not exist; in that case the SDK treats cache freshness as unknown and performs the network refresh. Implementations should throw FeatureCacheException for real cache access failures.