Skip to content

Instantly share code, notes, and snippets.

View michalzubkowicz's full-sized avatar

Michał Zubkowicz michalzubkowicz

View GitHub Profile
package controllers;
public class Application extends Controller {
// in cache during 1800 seconds (30 min)
@Cached(key = "pagingList", duration = 1800)
public static Result index(Integer page) {
String uuid = session("uuid");
if (uuid == null) {
uuid = java.util.UUID.randomUUID().toString();