getObject<T extends MeteorSharedObject> method
获取缓存对象 T 是继承自MeteorSharedObject类的的对象
Implementation
Future<T?> getObject<T extends MeteorSharedObject>(String key, T Function() constructor) async {
return await SharedMemoryCache.getObject<T>(key, constructor);
}