Preferences.flush

void flush() nothrow @nogc

Flushes changes to disk.

Changes are normally written automatically when the Preferences object is destroyed, but this can be called to force an immediate write.