Package growthbook.sdk.java.sandbox
Class CachingManager
java.lang.Object
growthbook.sdk.java.sandbox.CachingManager
Class responsible for caching data to a file
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CachingManager
-
-
Method Details
-
saveContent
Method that saves feature JSON as String to a cache file- Parameters:
fileName
- The name of file in the cache directorycontent
- Feature JSON as String type
-
loadCache
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.
-