Class FastGettext::Cache
In: lib/fast_gettext/cache.rb
Parent: Object

Methods

[]=   delete   fetch   new   reload!   switch_to  

Public Class methods

Public Instance methods

TODO only used for tests, maybe if-else around it …

key performance gain:

  • no need to lookup locale on each translation
  • no need to lookup text_domain on each translation
  • super-simple hash lookup

[Validate]