Michael Yang
2025-05-07 5afa5041ea166f462a90a996d5264c64837f4341
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package tech.aiflowy.common.sms;
 
import tech.aiflowy.common.util.TimeoutCacheUtil;
 
public class SmsCodeCache {
    private static final String cacheName = "smsCode";
 
    public static void put(String mobile, String value) {
        TimeoutCacheUtil.put(cacheName, mobile, value);
    }
 
    public static String get(String mobile) {
        return TimeoutCacheUtil.get(cacheName, mobile);
    }
 
    public static void remove(String mobile) {
        TimeoutCacheUtil.remove(cacheName, mobile);
    }
}