|
@@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import javax.annotation.PostConstruct;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
import java.util.function.Function;
|
|
@@ -31,6 +32,7 @@ public class AdCreativeFeatureContainer {
|
|
|
cache.put(key, value);
|
|
|
}
|
|
|
|
|
|
+ @PostConstruct
|
|
|
public void initCache(){
|
|
|
cache = CacheBuilder.newBuilder()
|
|
|
.maximumSize(1000)
|