接口 RouteCache<K,V>

所有已知实现类:
RouteInMemoryCache

public interface RouteCache<K,V>
从以下版本开始:
2.0.8
作者:
xiaoymin@foxmail.com 2020/10/31 10:56
  • 方法概要

    修饰符和类型
    方法
    说明
    get(K k)
    get cache value
    boolean
    put(K k, V v)
     
    boolean
    remove(K k)
    remove cache
  • 方法详细资料

    • put

      boolean put(K k, V v)
      参数:
      k - key
      v - value
      返回:
      true: cache success,false:error
    • get

      V get(K k)
      get cache value
      参数:
      k - key
      返回:
      cache value
    • remove

      boolean remove(K k)
      remove cache
      参数:
      k - key
      返回:
      true: remove cache success,false:error