Class
FastGettext::Cache
In:
lib/fast_gettext/cache.rb
Parent:
Object
Methods
[]=
delete
fetch
new
reload!
switch_to
Public Class methods
new
()
Public Instance methods
[]=
(key, value)
TODO only used for tests, maybe if-else around it …
delete
(key)
fetch
(key) {||| false| ...}
reload!
()
switch_to
(text_domain, locale)
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]