Hello Backendless team
I’m following the documentation in the cache section for a little POC.
I’m able to store data in the cache, that’s ok !!
My doubt is how to retrieve data correctly from the cache, I’m following the steps in the documentation but the data appears to be printed in the errorHandler block rather than responseHandler
Am I missing something?
Many thanks for the help !!
Data
Languaje: Swift - UIKit
Backendless SDK added as a swift package from master
Reproducible Test Case
This is the code in my button
@IBOutlet var loadDataId: UITextField!
@IBAction func actionLoadCacheButton(_ sender: Any) {
guard let cacheDataId = loadDataId.text else { return }
Backendless.shared.cache.get(key: cacheDataId, responseHandler: { result in
print("Backendless cache: \(result)")
},errorHandler: {fault in
print("Error: \(fault.message ?? "")")
})
}