cleanup objects in memory when reseting

multistore
Laurent 2 years ago
parent ae96f3b78b
commit 315fda705e
  1. 1
      LeStorage/StoredCollection.swift

@ -307,6 +307,7 @@ public class StoredCollection<T: Storable>: RandomAccessCollection, SomeCollecti
}
func reset() {
self.items.removeAll()
try? FileUtils.removeFileFromDocumentDirectory(fileName: T.fileName())
if let apiCallsCollection = self.apiCallsCollection {
apiCallsCollection.reset()

Loading…
Cancel
Save