Cache Manager

Cache Manager provides you with an easy-to-use option to retrieve cached data (if available) in case some communication problems with the backend occur.

So, if a request fails, you can obtain the cached data simply by using the CacheManager.get(_:) method.

Currently, our Cache Manager supports the caching of GetAccountInformation model after a successful Client.getAccount(success:failure:) response.

Example

let clientAccountInformation: ClientAccountInformation? = CacheManager.get(ClientAccountInformation.self) as? ClientAccountInformation

if clientAccountInformation != nil {
	// cached data is available
}
😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.