cache
Caches the result after evaluating it once.
cache(): LazyString
Notes
- This method is called automatically by strf().
- The cache can be reset using LazyString.invalidateCache(), which is done automatically when changing the application I18n provider (see app.i18n).
Return value
A new LazyString instance.
Related
- class LazyStringAn object that encapsulates a string, evaluated only when needed.