'Set the value into the data store.'

@utils.Synchronized
def Set(self, subject, attribute, value, timestamp=None, token=None, replace=True, sync=True):

    subject = utils.SmartUnicode(subject)
    _ = sync
    attribute = utils.SmartUnicode(attribute)
    if ((timestamp is None) or (timestamp == self.NEWEST_TIMESTAMP)):
        timestamp = (time.time() * 1000000)
    if (subject not in self.subjects):
        self.subjects[subject] = {}
    if (replace or (attribute not in self.subjects[subject])):
        self.subjects[subject][attribute] = []
    self.subjects[subject][attribute].append([self._Encode(value), int(timestamp)])
    self.subjects[subject][attribute].sort(key=(lambda x: x[1]))
