hazelcast/src/main/java/com/hazelcast/map/MapService.java
public Object putNearCache(String mapName, Data key, Data value) {
        // todo assert near-cache is enabled might be better
        if (!isNearCacheEnabled(mapName)) {
            return null;
        }
        NearCache nearCache = getNearCache(mapName);
        return nearCache.put(key, value);
    }
// if near-cache is not enabled, it returns null
if near-cache is not enabled, it returns null
if near - cache is not enabled it returns null
public Object putNearCache(String mapName, Data key, Data value) {
        if (!isNearCacheEnabled(mapName)) {
            return null;
        }
        NearCache nearCache = getNearCache(mapName);
        return nearCache.put(key, value);
    }
public Object putNearCache ( String mapName , Data key , Data value ) { if ( ! isNearCacheEnabled ( mapName ) ) { return null ; } NearCache nearCache = getNearCache ( mapName ) ; return nearCache . put ( key , value ) ; }
if near-cache is not enabled, it returns null
if near - cache is not enabled it returns null
// todo assert near-cache is enabled might be better