@@ -0,0 +1,2000 @@
+/*%0A * Copyright (C) 2014-present  The  openSourcLibrary-2015  Authors%0A *%0A * https://github.com/sdcuike%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.doctor.other;%0A%0Aimport java.time.LocalDateTime;%0Aimport java.time.format.DateTimeFormatter;%0Aimport java.util.concurrent.ConcurrentHashMap;%0Aimport java.util.concurrent.ConcurrentLinkedQueue;%0Aimport java.util.concurrent.ConcurrentSkipListMap;%0Aimport java.util.concurrent.atomic.LongAdder;%0A%0A/**%0A * @author doctor%0A *%0A * @time 2015%E5%B9%B47%E6%9C%8824%E6%97%A5 %E4%B8%8B%E5%8D%885:29:50%0A */%0Apublic final class CacheManager %7B%0A%09// hashmap%E5%A4%9A%E7%BA%A7%E7%B4%A2%E5%BC%95%E8%A7%84%E5%88%99%EF%BC%9A%E7%89%B9%E5%BE%81-%3E%E5%B1%9E%E4%B8%BB%E7%B1%BB%E5%88%AB-%3E %E5%86%85%E5%AD%98%E6%95%B0%E6%8D%AE%E6%97%B6%E9%97%B4%E5%88%86%E7%89%87-%3E%E5%86%85%E5%AD%98%E6%95%B0%E6%8D%AE%E5%88%97%E8%A1%A8%0A%09private ConcurrentHashMap%3CString, ConcurrentHashMap%3CString, ConcurrentSkipListMap%3CString, ConcurrentLinkedQueue%3CLong%3E%3E%3E%3E cache = new ConcurrentHashMap%3C%3E();%0A%0A%09private static final DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(%22YYYYMMdd%22);%0A%0A%09/**%0A%09 * @param args%0A%09 */%0A%09public static void main(String%5B%5D args) %7B%0A%09%09String format = LocalDateTime.now().format(timeFormatter);%0A%09%09System.out.println(format);%0A%0A%09%7D%0A%0A%09public static class AttributeMap %7B%0A%09%09private final LongAdder count;%0A%09%09private final ConcurrentHashMap%3CString, ConcurrentSkipListMap%3CString, ConcurrentLinkedQueue%3CLong%3E%3E%3E map;%0A%0A%09%09public AttributeMap() %7B%0A%09%09%09count = new LongAdder();%0A%09%09%09map = new ConcurrentHashMap%3C%3E();%0A%09%09%7D%0A%0A%09%09public long getAccount() %7B%0A%09%09%09return count.longValue();%0A%09%09%7D%0A%0A%09%09public boolean put(String attribute, LocalDateTime time, Long value) %7B%0A%09%09%09if (value == null) %7B%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%0A%09%09%09return false;%0A%09%09%7D%0A%09%7D%0A%7D%0A

ADD CacheManager