add method putWithTimestamp