Interface UserSettingsCache

All Known Implementing Classes:
UserSettingsCacheImpl

public interface UserSettingsCache
Provides saving/loading settings using the cache.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears cache.
    void
    Deletes setting from cache and store.
    get(String key)
     
    void
    put(String key, String value)
    Adds a value associated with a key to the cache and store.
  • Method Details

    • get

      @Nullable String get(String key)
      Parameters:
      key - setting identifier
      Returns:
      setting from cache or if cache does not contain setting, loads it from store
    • put

      void put(String key, @Nullable String value)
      Adds a value associated with a key to the cache and store.
      Parameters:
      key - setting identifier
      value - setting value
    • delete

      void delete(String key)
      Deletes setting from cache and store.
      Parameters:
      key - setting identifier
    • clear

      void clear()
      Clears cache.