code: public QueryCacheConfig setInMemoryFormat(InMemoryFormat inMemoryFormat) {
          checkNotNull(inMemoryFormat, "inMemoryFormat cannot be null");
          checkFalse(inMemoryFormat == InMemoryFormat.NATIVE, "InMemoryFormat." + inMemoryFormat + " is not supported.");
  
          this.inMemoryFormat = inMemoryFormat;
          return this;
      }
docs: Sets memory format of values of entries in {@code QueryCache}.
  <p>
  Default value is binary.
  
  @param inMemoryFormat the memory format
  @return this {@code QueryCacheConfig} instance