Skip to content

How to purge all items in the DataProvide and empty the cache in one shot? #62

@rahimizad

Description

@rahimizad

When a user logs out, we need to purge but it doesn't seem that you guys support a complete purge...

Is this the only way?

// Purge let count = self?.usersDataProvider.count ?? 0 for index in stride(from: count, to: 0, by: -1) { self?.usersDataProvider.remove(at: index) }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions