类 DSCacheRedis

java.lang.Object
com.sh.util.CacheRedis
com.sh.javax.util.DSCacheRedis
所有已实现的接口:
AutoCloseable

public class DSCacheRedis extends CacheRedis implements AutoCloseable

Description: 基于redis的cache

Title:首亨软件 - TSS/CRM等

从以下版本开始:
2016年11月23日
  • 构造器详细资料

    • DSCacheRedis

      public DSCacheRedis()
    • DSCacheRedis

      public DSCacheRedis(String initClassInfo)
  • 方法详细资料

    • putDs

      public void putDs(String key, Datastore ds)
    • putDs

      public void putDs(String dcType, String key, Datastore ds)
    • getDs

      public Datastore getDs(String key)
    • putTable

      public void putTable(String tableName, String key)
    • putTable

      public void putTable(String dcTpye, String tableName, String key)
      记录表对应的缓存key
      参数:
      dcTpye - String
      tableName - String
      key - String
    • refreshTable

      public void refreshTable(String tableName)
    • refreshTable

      public void refreshTable(String dcType, String tableName)
    • refreshTable

      public void refreshTable(String dcTpye, String tableName, boolean isForce)
      刷新表对应的所有相关缓存
      参数:
      dcTpye - String
      tableName - String
      isForce - boolean
    • updateCacheByTableName

      public void updateCacheByTableName(List<String> tableList)
    • updateCacheByTableName

      public void updateCacheByTableName(String dcType, List<String> tableList)
      更新操作时,刷新相关的缓存数据集
      参数:
      dcType - String
      tableList - List
    • processKey

      public String processKey(DataCenter dc, String sql, String key, String[] colsType, Object[] obj)
    • main

      public static void main(String[] args) throws Exception
      抛出:
      Exception