Class CacheManager

  • All Implemented Interfaces:

    
    public class CacheManager
    
                        

    Original API cache manager. Manages saving and receiving cached ad. It is also responsible for native ad expiration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheManager()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String save(String content)
      static String save(String content, Long exp) Saves content and optionally expires it after exp seconds.
      static boolean isValid(String cacheId)
      static void clear()
      static void setExpiry(String cacheId, long exp)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait