com.github.damianwajser.configuration.TtlProperties Maven / Gradle / Ivy
package com.github.damianwajser.configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.HashMap;
import java.util.Map;
@ConfigurationProperties(prefix = "spring-commons.cache.ttl")
@Configuration
public class TtlProperties {
private Map name = new HashMap<>();
private int all = 86400;
public void setName(Map name) {
this.name = name;
}
public int getGenericTTl() {
return this.all;
}
public void setAll(int all) {
this.all = all;
}
public Map getTtls() {
return this.name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy