Class DownloadCache


  • public class DownloadCache
    extends tech.kronicle.utils.BaseFileCache
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getContent​(java.lang.String url)  
      void putContent​(java.lang.String url, java.lang.String content)  
      • Methods inherited from class tech.kronicle.utils.BaseFileCache

        getFileContent, putFileContent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DownloadCache

        public DownloadCache​(tech.kronicle.utils.FileUtils fileUtils,
                             DownloadCacheConfig config)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getContent

        public java.util.Optional<java.lang.String> getContent​(java.lang.String url)
      • putContent

        public void putContent​(java.lang.String url,
                               java.lang.String content)