Store data <data> index by key <key>

    Args

    key <string> couchbase document id
    data <dict> data to store

def set(self, key, data, retry=0):
    
    """
    Store data <data> index by key <key>

    Args

    key <string> couchbase document id
    data <dict> data to store
    """
    
    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