'Set the value for an option. If the cache is unavailable the action will
still suceeed.
>>> from sentry import options
>>> options.set(\'option\', \'value\')'

def set(self, key, value, coerce=True):

    opt = self.lookup_key(key)
    assert (not (opt.flags & FLAG_NOSTORE)), ('%r    cannot    be    changed    at    runtime' % key)
    assert (not (opt.flags & FLAG_IMMUTABLE)), ('%r    cannot    be    changed    at    runtime' % key)
    assert (not ((opt.flags & FLAG_PRIORITIZE_DISK) and settings.SENTRY_OPTIONS.get(key))), ('%r    cannot    be    changed    at    runtime    because    it    is    configured    on    disk' % key)
    if coerce:
        value = opt.type(value)
    elif (not opt.type.test(value)):
        raise TypeError(('got    %r,    expected    %r' % (_type(value), opt.type)))
    return self.store.set(opt, value)
