class LruTtlCache

Public Class Methods

ticker_cache(ticker_ttl = 5, cache_size = 200) click to toggle source
# 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