-
-
方法概要
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
构造器详细资料
-
SimpleCache
public SimpleCache()
-
方法详细资料
-
get
public V get(K key)
从缓存池中查找值
- 参数:
key
- 键
- 返回:
- 值
-
remove
public V remove(K key)
移除缓存
- 参数:
key
- 键
- 返回:
- 移除的值
-
clear
public void clear()
清空缓存池
Copyright © 2021. All rights reserved.