Add "put" method with auto-commit to SharePreferences