-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SimpleCache
public SimpleCache()
-
Method Detail
-
get
public V get(K key)
从缓存池中查找值
- Parameters:
key
- 键
- Returns:
- 值
-
remove
public V remove(K key)
移除缓存
- Parameters:
key
- 键
- Returns:
- 移除的值
-
clear
public void clear()
清空缓存池
Copyright © 2021. All rights reserved.