Store

  • DefaultsStore

    DefaultsStore is a value store class to sync default values with RemoteConfig.

    You can set default value through Lobster’s subscripting.

    Example for setting default value to DefaultsStore and syncing withRemoteConfig.

    extension ConfigKeys {
        static let title = ConfigKey<String>("title")
    }
    
    // use subscripting
    Lobster.shared[default: .title] = "foo bar"
    
    // use dictionary
    Lobster.shared.setDefaults([ConfigKeys.title._key: "foo bar"])
    

    Note

    Basically, You don’t have to use it directly.
    See more

    Declaration

    Swift

    public final class DefaultsStore
  • Represents a value store that can store isStaled.

    See more

    Declaration

    Swift

    public protocol StaleValueStore