Selaa lähdekoodia

make removeSizeExceededValues public in disc storage

Nick 2 vuotta sitten
vanhempi
commit
e5978b0afc
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Sources/Cache/DiskStorage.swift

+ 1 - 1
Sources/Cache/DiskStorage.swift

@@ -395,7 +395,7 @@ public enum DiskStorage {
         /// - Returns: The URLs for removed files.
         /// - Returns: The URLs for removed files.
         ///
         ///
         /// - Note: This method checks `config.sizeLimit` and remove cached files in an LRU (Least Recently Used) way.
         /// - Note: This method checks `config.sizeLimit` and remove cached files in an LRU (Least Recently Used) way.
-        func removeSizeExceededValues() throws -> [URL] {
+        public func removeSizeExceededValues() throws -> [URL] {
 
 
             if config.sizeLimit == 0 { return [] } // Back compatible. 0 means no limit.
             if config.sizeLimit == 0 { return [] } // Back compatible. 0 means no limit.