Class MarketNewsCacheKeys
java.lang.Object
com.bluebell.greenhouse.platform.configuration.cache.market.news.MarketNewsCacheKeys
Cache key helpers for market news lookups.
- Version:
- 3.0.3
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringforArticleUrl(String articleUrl) Builds the cache key for a market news article image lookup.static StringforSearch(String symbol, String[] tags, LocalDate start, LocalDate end, Integer limit, Integer offset) Builds the cache key for a combined market news search.static StringforSummary(String article, int maxSentences) Builds a bounded cache key for a market news article summary.
-
Method Details
-
forSearch
public static String forSearch(String symbol, String[] tags, LocalDate start, LocalDate end, Integer limit, Integer offset) Builds the cache key for a combined market news search.- Parameters:
symbol- optional symboltags- optional topic tagsstart- optional start dateend- optional end datelimit- optional result limitoffset- optional result offset- Returns:
- cache key
-
forArticleUrl
-
forSummary
-