-
Load the session data.
Declaration
Swift
func load(sessionId: String, callback: @escaping (Data?, NSError?) -> Void)
Parameters
sessionId
The ID of the session.
callback
The closure to invoke once the session data is fetched.
-
Save the session data.
Declaration
Swift
func save(sessionId: String, data: Data, callback: @escaping (NSError?) -> Void)
Parameters
sessionId
The ID of the session.
data
The data to save.
callback
The closure to invoke once the session data is saved.
-
Touch the session data.
Declaration
Swift
func touch(sessionId: String, callback: @escaping (NSError?) -> Void)
Parameters
sessionId
The ID of the session.
callback
The closure to invoke once the session data is touched.
-
Delete the session data.
Declaration
Swift
func delete(sessionId: String, callback: @escaping (NSError?) -> Void)
Parameters
sessionId
The ID of the session.
callback
The closure to invoke once the session data is deleted.