Decorate a getter to cache its result.
Useful for deferring initialisation of a property until first access. Instead of myProperty = new Thing();, use @cache get myProperty() { return new Thing(); }.
myProperty = new Thing();
@cache get myProperty() { return new Thing(); }
Decorate a getter to cache its result.
Useful for deferring initialisation of a property until first access. Instead of
myProperty = new Thing();, use@cache get myProperty() { return new Thing(); }.