Last Modified
2014-08-13 17:17:49 +0000
Requires

Description

Memoize module simply memoizes the values returned by lookup using a flat hash and can tremendously speed up the lookup process in a backend.

To enable it you can simply include the Memoize module to your backend:

I18n::Backend::Simple.include(I18n::Backend::Memoize)

Notice that it's the responsibility of the backend to define whenever the cache should be cleaned.