UserDefaultsPersister

public class UserDefaultsPersister : JobPersister

Persist jobs in UserDefaults

  • Create a Job persister with a custom key

    Declaration

    Swift

    public init(key: String = "SwiftQueueInfo")
  • Declaration

    Swift

    public func restore() -> [String]
  • Restore jobs for a single queue Returns an array of String. serialized job

    Declaration

    Swift

    public func restore(queueName: String) -> [String]
  • Insert a job to a specific queue

    Declaration

    Swift

    public func put(queueName: String, taskId: String, data: String)
  • Remove a specific task from a queue

    Declaration

    Swift

    public func remove(queueName: String, taskId: String)