Class FileCachePersist

  • All Implemented Interfaces:
    IServerCachePersist

    public class FileCachePersist
    extends java.lang.Object
    implements IServerCachePersist
    This class implements the file system based caching store.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileCachePersist()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clean​(java.lang.String prefix)
      Method clean
      remove all cache items from the store depends on prefix
      void dropItem​(java.lang.String prefix, java.lang.String key)
      Method dropItem
      drop a single item, this method is necessary for clean job in case of occurred exception
      java.io.InputStream getInputStream​(java.lang.String prefix, java.lang.String key)
      Method getInputStream
      long getLastModified​(java.lang.String prefix, java.lang.String key)
      Method getLastModified
      java.io.OutputStream getOutputStream​(java.lang.String prefix, java.lang.String key)
      Method getOutputStream
      boolean isCached​(java.lang.String prefix, java.lang.String key)
      Method isCached
      void setAbsoluteFolderPath​(java.lang.String absoluteFolderPath)
      Method setAbsoluteFolderPath
      • Methods inherited from class java.lang.Object

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