接口 Level1Cache

所有超级接口:
Cache
所有已知实现类:
CaffeineCache, EhCache, EhCache3, NullCache

public interface Level1Cache extends Cache
一级缓存接口
作者:
Winter Lau(javayou@gmail.com)
  • 方法概要

    修饰符和类型
    方法
    说明
    long
    返回该缓存区域中,内存存储对象的最大数量
    long
    ttl()
    返回该缓存区域的 TTL 设置(单位:秒)

    从接口继承的方法 net.oschina.j2cache.Cache

    clear, evict, exists, get, get, keys, put, put
  • 方法详细资料

    • ttl

      long ttl()
      返回该缓存区域的 TTL 设置(单位:秒)
      返回:
      true if cache support ttl setting
    • size

      long size()
      返回该缓存区域中,内存存储对象的最大数量
      返回:
      cache size in memory