Docs (4.0.0)
class LazyString method

cache

Caches the result after evaluating it once.

cache(): LazyString

Notes

Return value

A new LazyString instance.

Related

  • class LazyStringAn object that encapsulates a string, evaluated only when needed.