Method: SuperSettings::LocalCache#size

Defined in:
lib/super_settings/local_cache.rb

#sizeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get the number of entries in the cache. Note that this will include cache misses as well.

Returns:

  • the number of entries in the cache.



82
83
84
85
# File 'lib/super_settings/local_cache.rb', line 82

def size
  ensure_cache_up_to_date!
  @cache.size
end