Method: Fastentry::Cache#select

Defined in:
lib/fastentry.rb

#select(from: 0, amount: 20) ⇒ Object



13
14
15
16
# File 'lib/fastentry.rb', line 13

def select(from: 0, amount: 20)
  count = adjusted_amount(from, amount)
  keys.try(:[], from, count) || []
end