package com.bcxin.Infrastructures;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author linqinglin
 * @date 2021/12/14 0014 15:02
 */

@Component
@ConfigurationProperties(prefix = "spring.redis")
public class RedisConfig {

    private static String prefixKey = "V5:";

    public static String getPrefixKey() {
        return prefixKey;
    }

    public void setPrefixKey(String prefixKey) {
        RedisConfig.prefixKey = prefixKey;
    }
}
