public class UCache extends CacheManagerImpl
UCache
懒汉单例模式-双重锁模式
线程安全,延迟初始化。这种方式采用双锁机制,安全且在多线程情况下能保持高性能。
设计模式之单例模式 - 简书
https://www.jianshu.com/p/3bfd916f2bb2
Modifier and Type | Method and Description |
---|---|
static UCache |
getInstance()
单例获取实例对象
|
clearAll, clearByKey, getAllKeys, getCacheAll, getCacheByKey, getCacheDataByKey, isContains, isTimeOut, putCache, putCache
public static UCache getInstance()
Copyright © 2020. All rights reserved.