类 CacheEwaScript

java.lang.Object
com.gdxsoft.easyweb.cache.CacheEwaScript

public class CacheEwaScript extends Object
  • 构造器详细资料

    • CacheEwaScript

      public CacheEwaScript(RequestValue rv)
    • CacheEwaScript

      public CacheEwaScript(String xmlName, String itemName)
  • 方法详细资料

    • removeCached

      public void removeCached()
      清除Cache文件,用于ConfigCache发现配置文件改变时
    • init

      public void init()
    • getCachedContent

      public boolean getCachedContent(int cachedSeconds) throws Exception
      获取文件内容,如果文件超时,则删除文件并返回空
      参数:
      cachedSeconds - 缓存时间
      返回:
      抛出:
      Exception
    • writeCache

      public boolean writeCache(String content)
      写内容
      参数:
      content -
      返回:
    • getPath

      public String getPath()
      返回:
      the _Path
    • getName

      public String getName()
      返回:
      the _Name
    • getCachedContent

      public String getCachedContent()
      获取缓存内容
      返回:
      the _Content
    • getResult

      public CacheLoadResult getResult()
      返回:
      the _Result