接口 IStringCache<T>

所有超级接口:
AutoCloseable, IBaseCache, IRedisCache, IValueCache<T>
所有已知子接口:
IDataDbCache<T>, IDistributedLockDbCache<T>, IParamDbCache<T>, ISessionDbCache<T>
所有已知实现类:
DataDbCache, DistributedLockDbCache, ParamDbCache, SessionDbCache, StringCache

public interface IStringCache<T> extends IValueCache<T>
string key value 接口
  • 方法详细资料

    • get

      T get(Object... args) throws Exception
      获取缓存
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • set

      boolean set(T m, OpWhen when, Object... args) throws Exception
      添加或更新
      参数:
      m - 缓存数据
      when - when
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • set

      boolean set(T m, int expireSeconds, OpWhen when, Object... args) throws Exception
      添加或更新
      参数:
      m - 缓存数据
      expireSeconds - 缓存有效时间,秒
      when - 操作类型
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • increment

      long increment(long incrementValue, Object... args) throws Exception
      原子增 T 必须是 int、 long
      参数:
      incrementValue - 增量
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • decrement

      long decrement(long decrementValue, Object... args) throws Exception
      原子减 T 必须是 int、 long
      参数:
      decrementValue - 减量
      args - 原子减 T 必须是 int、 long
      返回:
      抛出:
      Exception