Module: Serega::SeregaMap::ClassMethods
- Included in:
- Serega::SeregaMap
- Defined in:
- lib/serega/map.rb
Instance Method Summary collapse
Instance Method Details
#call(opts) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/serega/map.rb', line 6 def call(opts) max_cache_size = serializer_class.config.max_cached_map_per_serializer_count return map_for(opts) if max_cache_size.zero? cached_map_for(opts, max_cache_size) end |