Hi, There is a CacheMonitor application in the installableApps folder. It will allow you to view the cache and see if your cachespec is being loaded.



I couldn't really make out your cachespec.xml. What is your cache-id?



Here is an easy example of implementing a commandcache. Basically caching up the "email". Maybe it will help.



public class UserCacheCommand extends CacheableCommandImpl {



public UserCacheCommand() {

}

private String email = null;



public UserCacheCommand(String userId) {

this();

this.userId = userId;

}



public boolean isReadyToCallExecute() {

return userId != null;

}



public void performExecute() throws Exception {

//Do Logic to get email

this.email = email;

}



public String getEmail() {

return email;

}



public String getUserId() {

return userId;

}



public String toString() {

return "UserId: " + getUserId() + " Email:" + getEmail();

}

}



The cachespec.xml could look something like this:


command
not-shared
com.blah.blh.UserCacheCommand


true

1