-
Load the session data.
Declaration
Swift
func load(sessionId: String, callback: @escaping (Data?, NSError?) -> Void)Parameters
sessionIdThe ID of the session.
callbackThe 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
sessionIdThe ID of the session.
dataThe data to save.
callbackThe closure to invoke once the session data is saved.
-
Touch the session data.
Declaration
Swift
func touch(sessionId: String, callback: @escaping (NSError?) -> Void)Parameters
sessionIdThe ID of the session.
callbackThe closure to invoke once the session data is touched.
-
Delete the session data.
Declaration
Swift
func delete(sessionId: String, callback: @escaping (NSError?) -> Void)Parameters
sessionIdThe ID of the session.
callbackThe closure to invoke once the session data is deleted.
View on GitHub
Store Protocol Reference