storeSessionInCache method
Implementation
Future<void> storeSessionInCache(Session session) async {
await _lock.synchronized(() async {
try {
final props = {sessionCacheKey: jsonEncode(session.toJson())};
await PerceptFlutterPlatform.instance.setGlobalProperties(props);
Debug.print("SessionManager: Session successfully cached.");
} catch (e) {
Debug.print("SessionManager: Error storing session in cache: $e");
}
});
}