hazelcast/src/main/java/com/hazelcast/map/DefaultRecordStore.java
public Record putBackup(Data key, Object value, long ttl) {
        final long now = getNow();
        earlyWriteCleanup(now);
        markRecordStoreExpirable(ttl);

        Record record = records.get(key);
        if (record == null) {
            record = mapService.createRecord(name, key, value, ttl, now);
            records.put(key, record);
            updateSizeEstimator(calculateRecordSize(record));
        } else {
            updateSizeEstimator(-calculateRecordSize(record));
            setRecordValue(record, value, now);
            updateSizeEstimator(calculateRecordSize(record));
        }
        mapDataStore.addBackup(key, value, now);
        return record;
    }
/**
     * @param key   the key to be processed.
     * @param value the value to be processed.
     * @param ttl   milliseconds. Check out {@link com.hazelcast.map.proxy.MapProxySupport#putInternal}
     * @return previous record if exists otherwise null.
     */
@param key   the key to be processed.
@param value the value to be processed.
@param ttl   milliseconds. Check out  com.hazelcast.map.proxy.MapProxySupport#putInternal
@return previous record if exists otherwise null.
@param key the key to be processed . @param value the value to be processed . @param ttl milliseconds . Check out com . hazelcast . map . proxy . MapProxySupport#putInternal @return previous record if exists otherwise null .
public Record putBackup(Data key, Object value, long ttl) {
        final long now = getNow();
        earlyWriteCleanup(now);
        markRecordStoreExpirable(ttl);
        Record record = records.get(key);
        if (record == null) {
            record = mapService.createRecord(name, key, value, ttl, now);
            records.put(key, record);
            updateSizeEstimator(calculateRecordSize(record));
        } else {
            updateSizeEstimator(-calculateRecordSize(record));
            setRecordValue(record, value, now);
            updateSizeEstimator(calculateRecordSize(record));
        }
        mapDataStore.addBackup(key, value, now);
        return record;
    }
public Record putBackup ( Data key , Object value , long ttl ) { final long now = getNow ( ) ; earlyWriteCleanup ( now ) ; markRecordStoreExpirable ( ttl ) ; Record record = records . get ( key ) ; if ( record == null ) { record = mapService . createRecord ( name , key , value , ttl , now ) ; records . put ( key , record ) ; updateSizeEstimator ( calculateRecordSize ( record ) ) ; } else { updateSizeEstimator ( - calculateRecordSize ( record ) ) ; setRecordValue ( record , value , now ) ; updateSizeEstimator ( calculateRecordSize ( record ) ) ; } mapDataStore . addBackup ( key , value , now ) ; return record ; }
@param key   the key to be processed.
@param key the key to be processed .