getObject<T extends MeteorSharedObject> method

Future<T?> getObject<T extends MeteorSharedObject>(
  1. String key,
  2. T constructor()
)

获取缓存对象 T 是继承自MeteorSharedObject类的的对象

Implementation

Future<T?> getObject<T extends MeteorSharedObject>(String key, T Function() constructor) async {
  return await SharedMemoryCache.getObject<T>(key, constructor);
}