📄 yqwcache.java
字号:
/*
* Created on 2007-9-22
* Last modified on 2007-9-22
* Powered by YeQiangWei.com
*/
package com.yeqiangwei.club.cache.singleton;
import java.util.Iterator;
import java.util.Map;
import com.yeqiangwei.club.cache.Cache;
import com.yeqiangwei.club.cache.CacheException;
import com.yeqiangwei.club.cache.CacheProvider;
public class YQWcache implements CacheProvider{
public Cache buildCache(String name) throws CacheException {
return null;
}
public boolean isMinimalPutsEnabledByDefault() {
return false;
}
public void start() throws CacheException {
}
public long nextTimestamp() {
return 0;
}
public void stop() {
}
public String[] getCacheNames() {
Map<String, Map> map = CacheImpl.CACHES;
String[] names = new String[map.size()];
Iterator iterator = map.keySet().iterator();
int i = 0;
while(iterator.hasNext()){
names[i] = iterator.next().toString();
i++;
}
return names;
}
public Cache getCache(String name) {
return CacheFactory.creator(name);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -