The Event Handlers
function getCacheKeys(event,rc,prc){
return getCache( rc.cacheProvider ).getKeys();
}
function listUsers(event,rc,prc){
prc.data = userService.list();
if( event.isProxyRequest() ){
return prc.data;
}
event.setView("users/listUsers");
}array function getCachekEys(string cacheProvider='default'){
arguments.event = "proxy.getCacheKeys";
return process(argumentCollection=arguments);
}
string function getUsersJSON(){
arguments.event = "proxy.listUsers";
return serializeJSON( process(argumentCollection=arguments) );
}Last updated
Was this helpful?