Class CachingManager

java.lang.Object
growthbook.sdk.java.sandbox.CachingManager

public class CachingManager extends Object
Class responsible for caching data to a file
  • Constructor Details

    • CachingManager

      public CachingManager(String filePath)
  • Method Details

    • saveContent

      public void saveContent(String fileName, String content)
      Method that saves feature JSON as String to a cache file
      Parameters:
      fileName - The name of file in the cache directory
      content - Feature JSON as String type
    • loadCache

      public String loadCache(String fileName)
      Method that fetches data from cache by file name
      Parameters:
      fileName - The name of the file in the cache directory.
      Returns:
      The cached data as a String.