We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3891aeb commit a9e64c4Copy full SHA for a9e64c4
Playgrounds/Storage.playground/Contents.swift
@@ -53,7 +53,7 @@ try dateStorage.setObject(date, forKey: "date")
53
//
54
//// Get objects from the cache
55
let cachedString = try? stringStorage.object(forKey: "string")
56
-print(cachedString)
+print(cachedString as Any)
57
58
imageStorage.async.object(forKey: "image") { result in
59
if case .value(let image) = result {
@@ -74,7 +74,7 @@ dateStorage.async.object(forKey: "date") { result in
74
}
75
76
// Clean the cache
77
-try dataStorage.async.removeAll(completion: { (result) in
+dataStorage.async.removeAll(completion: { (result) in
78
if case .value = result {
79
print("Cache cleaned")
80
0 commit comments