code: public static <T extends V, V> Value<V> from(Optional<T> optional) {
  
          LettuceAssert.notNull(optional, "Optional must not be null");
  
          if (optional.isPresent()) {
              return new Value<V>(optional.get());
          }
  
          return (Value<V>) EMPTY;
      }
docs: Creates a {@link Value} from an {@link Optional}. The resulting value contains the value from the {@link Optional} if a
  value is present. Value is empty if the {@link Optional} is empty.
  
  @param optional the optional. May be empty but never {@literal null}.
  @param <T>
  @param <V>
  @return the {@link Value}