cache config

This commit is contained in:
Athou
2014-08-09 13:26:03 +02:00
parent f0f46169e4
commit 21ec54408e
3 changed files with 16 additions and 2 deletions

View File

@@ -18,6 +18,10 @@ import com.google.common.cache.CacheBuilderSpec;
@Getter
public class CommaFeedConfiguration extends Configuration {
public static enum CacheType {
NOOP, REDIS
}
@Valid
@NotNull
@JsonProperty("database")
@@ -92,6 +96,9 @@ public class CommaFeedConfiguration extends Configuration {
@JsonProperty
private int refreshIntervalMinutes;
@JsonProperty
private CacheType cache;
@JsonProperty
private String announcement;