yangys
2024-05-08 dc40d10f7d8227d8b8216584ed19e4d41c57f0cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.qianwen.core.redis.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
 
@ConfigurationProperties("blade.redis")
 
public class BladeRedisProperties {
    private SerializerType serializerType = SerializerType.ProtoStuff;
 
    
    public enum SerializerType {
        ProtoStuff,
        JSON,
        JDK
    }
 
    public void setSerializerType(final SerializerType serializerType) {
        this.serializerType = serializerType;
    }
 
    public SerializerType getSerializerType() {
        return this.serializerType;
    }
}