We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let diskConfig = DiskConfig(name: "Floppy") let memoryConfig = MemoryConfig(expiry: .never)
let storage = try? Storage<String, Data>( diskConfig: diskConfig, memoryConfig: memoryConfig, fileManager: FileManager.default, transformer: TransformerFactory.forData() ) let user2 = User(firstName: "J222ohdsdsdn", lastName: "Sdsdsdsdnow") let customStorage = storage?.transformCodable(ofType: User.self) customStorage?.async.setObject(user2, forKey: "cityfd") { result in let ddfs = try? storage?.object(forKey: "cityfd") print(ddfs) switch result { case .success(): print("saved successfully") case .failure(let error): print(error.localizedDescription) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
let diskConfig = DiskConfig(name: "Floppy")
let memoryConfig = MemoryConfig(expiry: .never)
The text was updated successfully, but these errors were encountered: