Class: LruTtlCache
- Inherits:
-
Object
- Object
- LruTtlCache
- Defined in:
- lib/cryptoexchange/lru_ttl_cache.rb
Class Method Summary collapse
Class Method Details
.ticker_cache(ticker_ttl = 5, cache_size = 200) ⇒ Object
3 4 5 |
# File 'lib/cryptoexchange/lru_ttl_cache.rb', line 3 def ticker_cache(ticker_ttl = 5, cache_size = 200) @@ticker_cache ||= LruRedux::TTL::Cache.new(cache_size, ticker_ttl) end |