TTL Object retrieving fix
This commit is contained in:
parent
3c129484d4
commit
76d1113af0
|
@ -33,7 +33,9 @@ public abstract class AbstractScopedMap<T> implements Engine<T>{
|
|||
|
||||
if(found== null){
|
||||
log.debug(name+" : init object for context "+currentScope);
|
||||
return scopeMap.put(currentScope, new TTLObject<T>(LocalDateTime.now(),retrieveObject())).getTheObject();
|
||||
TTLObject<T> toPut=new TTLObject<T>(LocalDateTime.now(),retrieveObject());
|
||||
scopeMap.put(currentScope, toPut);
|
||||
return toPut.getTheObject();
|
||||
}
|
||||
|
||||
if(TTL!=null) {
|
||||
|
|
Reference in New Issue