@args int val @extends(main)

Code | Result
--- | ---

    @verbatim() {
    @cache() {
        cache without parameter: @val
    }
    }
| @cache() { cache without parameter: @val }

        @verbatim() {
    @cache("2s") {
        cache for "2s": @val
    }
        }
| @cache("2s") { cache for "2s": @val }

    @verbatim() {
    @cache(2*2) {
        cache for 2*2: @val
    }
    }
| @cache(2*2) { cache for 2*2: @val }

    @verbatim() {
    @cache(2*2, new Random().nextInt()) {
        cache for 2*2: @val
    }
    }
| @cache(2*2, new Random().nextInt()) { cache for 2*2 using random int as cache parameter: @val }

@include("tmpl_src")