diff --git a/Kit/plugins/Store.swift b/Kit/plugins/Store.swift index a5092236..eb261e88 100644 --- a/Kit/plugins/Store.swift +++ b/Kit/plugins/Store.swift @@ -46,7 +46,9 @@ public class Store { } public func exist(key: String) -> Bool { - return self.getValue(for: key, type: Any.self) != nil + return self.cacheQueue.sync { + self.cache.keys.contains(key) || self.defaults.object(forKey: key) != nil + } } public func remove(_ key: String) {