code: def set(self, key, data, retry=0):
      
      
      
      try:
  
        if type(data) != dict:
          raise Exception("data needs to be of type <dict>")
  
        self.bucket.set(key, 0, 0, json.dumps(data))
  
      except:
        raise
docs: Store data <data> index by key <key>
  
      Args
  
      key <string> couchbase document id
      data <dict> data to store