WritePolicy

public enum WritePolicy

Policy that describes how a write operation should perform.

  • Writes in the local cache first and then try to write trought the network (backend).

    Declaration

    Swift

    case localThenNetwork
  • Writes in the local cache first but does not call the callback and then try to write trought the network (backend).

    Declaration

    Swift

    case silentLocalThenNetwork
  • Doesn’t hit the network, forcing to write the data only in the local cache.

    Declaration

    Swift

    case forceLocal
  • Doesn’t hit the local cache, forcing to write the data only trought the network (backend).

    Declaration

    Swift

    case forceNetwork