code: def put(self, key, value, ttl=-1):
          
          check_not_none(key, "key can't be none")
          check_not_none(value, "value can't be none")
          return self._encode_invoke(transactional_map_put_codec, key=self._to_data(key),
                                     value=self._to_data(value), ttl=to_millis(ttl))
docs: Transactional implementation of :func:`Map.put(key, value, ttl) <hazelcast.proxy.map.Map.put>`
  
          The object to be put will be accessible only in the current transaction context till the transaction is
          committed.
  
          :param key: (object), the specified key.
          :param value: (object), the value to associate with the key.
          :param ttl: (int), maximum time in seconds for this entry to stay (optional).
          :return: (object), previous value associated with key or ``None`` if there was no mapping for key.