Method: AdminAssistant::Index::RecordFinder#cache_total_entries

Defined in:
lib/admin_assistant/index.rb

#cache_total_entries(total_entries) ⇒ Object



99
100
101
102
103
104
# File 'lib/admin_assistant/index.rb', line 99

def cache_total_entries(total_entries)
  Rails.cache.write(
    total_entries_cache_key, total_entries,
    :expires_in => settings.cache_total_entries
  )
end