leutu
2024-06-03 3ef35e6cd16bbfa206b26bb3271eac40ad020bcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.fastbee.common.core.redis;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * {@link RedisKeyDefine} 注册表
 */
public class RedisKeyRegistry {
 
    /**
     * Redis RedisKeyDefine 数组
     */
    private static final List<RedisKeyDefine> DEFINES = new ArrayList<>();
 
    public static void add(RedisKeyDefine define) {
        DEFINES.add(define);
    }
 
    public static List<RedisKeyDefine> list() {
        return DEFINES;
    }
 
    public static int size() {
        return DEFINES.size();
    }
 
}