/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.cachecore.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 缓存属性配置
 *
 * @author lingee
 * @date 2023/7/26
 */
@Data
@Configuration
@ConfigurationProperties("cvbp.cache")
public class CacheProperties {

    /**
     * 缓存
     */
    private Boolean enabled = false;

    /**
     * 缓存类型
     */
    private String type = "redis";

    /**
     * 缓存超时时间（单位:秒）
     */
    private Long timeout = 3600 * 24L;

    /**
     * redisson是否开启
     */
    private Boolean redisson = false;

}
