You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
421 B
22 lines
421 B
package com.example.zxweb.utils;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* @Description
|
|
* @Author ZhouWenTao
|
|
* @Date 2023/9/8 18:11
|
|
*/
|
|
public class CacheManager {
|
|
private static Map<String, Object> cache = new HashMap<>();
|
|
|
|
public static void put(String key, Object value) {
|
|
cache.put(key, value);
|
|
}
|
|
|
|
public static Object get(String key) {
|
|
return cache.get(key);
|
|
}
|
|
}
|