接口 IRedisCache

所有超级接口:
AutoCloseable, IBaseCache
所有已知子接口:
IDataDbCache<T>, IDistributedLockDbCache<T>, IGeoCache, IGeoDbCache, IHashCache<TField,TValue>, IHashDbCache<TField,TValue>, ILinkListCache<T>, ILinkListDbCache<T>, IParamDbCache<T>, ISessionDbCache<T>, ISetCache<T>, ISetDbCache<T>, ISortSetCache<T>, ISortSetDbCache<T>, IStringCache<T>, IValueCache<T>
所有已知实现类:
DataDbCache, DistributedLockDbCache, GeoCache, GeoDbCache, HashCache, HashDbCache, LinkListCache, LinkListDbCache, ParamDbCache, RedisCache, SessionDbCache, SetCache, SetDbCache, SortSetCache, SortSetDbCache, StringCache

public interface IRedisCache extends IBaseCache
  • 方法详细资料

    • setJsonMapper

      void setJsonMapper(IJsonMapper mapper)
      setJsonMapper
    • getKeyConfig

      CacheKeyConfig getKeyConfig()
      缓存key配置
      返回:
    • getCacheKey

      String getCacheKey(Object[] args) throws Exception
      获取完整缓存key
      参数:
      args - 缓存key参数
      返回:
      key
      抛出:
      Exception
    • getCacheDb

      int getCacheDb(String cachekey)
      获取完整key所在db
      参数:
      cachekey - 完整缓存key
      返回:
    • contains

      boolean contains(Object[] args) throws Exception
      缓存key是否存在
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • remove

      boolean remove(Object[] args) throws Exception
      移除缓存
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • expire

      boolean expire(Integer expireSeconds, Object[] args) throws Exception
      设置缓存有效时间
      参数:
      expireSeconds - 缓存有效时间, 秒
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • expire

      boolean expire(Object[] args) throws Exception
      根据系统配置设置缓存有效时间
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • ping

      String ping()
      ping
      返回: