@args int val @extends(main)
| Code | Result |
|---|---|
@verbatim() {
@cache() {
|
@cache() {
cache without parameter: @val } |
@verbatim() {
@cache("2s") {
|
@cache("2s") {
cache for "2s": @val } |
@verbatim() {
@cache(2*2) {
|
@cache(2*2) {
cache for 2*2: @val } |
@verbatim() {
@cache(2*2, new Random().nextInt()) {
|
@cache(2*2, new Random().nextInt()) {
cache for 2*2 using random int as cache parameter: @val } |