Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xvrl committed Mar 11, 2014
1 parent b5d9876 commit 8baac72
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,22 @@

public class MemcachedCacheConfig
{
// default to 30 day expiration for cache entries
// values greater than 30 days are interpreted by memcached as absolute POSIX timestamps instead of duration
@JsonProperty
private int expiration = 2592000; // What is this number?
private int expiration = 30 * 24 * 3600;

@JsonProperty
private int timeout = 500;

// comma delimited list of memcached servers, given as host:port combination
@JsonProperty
@NotNull
private String hosts;

@JsonProperty
private int maxObjectSize = 50 * 1024 * 1024;

@JsonProperty
private String memcachedPrefix = "druid";

Expand Down

0 comments on commit 8baac72

Please sign in to comment.