Пример #1
0
 public String putObject(String objectId, Object obj) {
   cachedObjects.put(objectId, obj);
   return objectId;
 }
Пример #2
0
 /**
  * Save a given object in memory for later (quick server-side) retrieval
  *
  * @param obj
  * @return
  */
 public String putObject(Object obj) {
   String objectId = UUID.randomUUID().toString();
   cachedObjects.put(objectId, obj);
   return objectId;
 }