类 Cache

java.lang.Object
org.ssssssss.magicapi.core.config.Cache

public class Cache extends Object
缓存配置
作者:
mxd
  • 字段详细资料

    • enable

      private boolean enable
      是否启用缓存
    • capacity

      private int capacity
      默认缓存容量
    • ttl

      private long ttl
      默认过期时间,单位为毫秒,-1为不过期
  • 构造器详细资料

    • Cache

      public Cache()
  • 方法详细资料

    • getCapacity

      public int getCapacity()
    • setCapacity

      public void setCapacity(int capacity)
    • getTtl

      public long getTtl()
    • setTtl

      public void setTtl(long ttl)
    • isEnable

      public boolean isEnable()
    • setEnable

      public void setEnable(boolean enable)