Package io.jmix.ui.settings
Interface UiSettingsCache
- All Known Implementing Classes:
UiSettingsCacheImpl
public interface UiSettingsCache
Provides saving/loading settings using the cache.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears cache.voiddeleteSettings(String name) Deletes setting from cache and store.getSetting(String name) voidsetSetting(String name, String value) Sets a setting to the cache and store.
-
Method Details
-
getSetting
- Parameters:
name- setting name- Returns:
- setting from cache or if cache does not contain setting, loads it from store
-
setSetting
Sets a setting to the cache and store.- Parameters:
name- setting namevalue- setting value
-
deleteSettings
Deletes setting from cache and store.- Parameters:
name- setting name
-
clear
void clear()Clears cache.
-