Dominique Stranz 6 лет назад
Родитель
Сommit
66a791295e
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      Sources/Cache/MemoryStorage.swift

+ 3 - 2
Sources/Cache/MemoryStorage.swift

@@ -128,8 +128,9 @@ public enum MemoryStorage {
         /// - Parameters:
         ///   - key: Cache Key
         ///   - extendingExpiration: expiration value to extend item expiration time:
-        ///     * .never will not extend expiration
-        ///     * nil (default value) will use object cache expiration settings
+        ///     * .none: The item expires after the original time, without extending after access.
+        ///     * .cacheTime: The item expiration extends by the original cache time after each access.
+        ///     * .expirationTime: The item expiration extends by the provided time after each access.
         /// - Returns: cached object or nil
         func value(forKey key: String, extendingExpiration: ExpirationExtending = .cacheTime) -> T? {
             guard let object = storage.object(forKey: key as NSString) else {