SharedMemoryCache class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
canSave(dynamic value)
→ bool
-
-
getBool(String key)
→ Future<bool?>
-
-
getBytes(String key)
→ Future<List<int>?>
-
-
getDouble(String key)
→ Future<double?>
-
-
getInt(String key)
→ Future<int?>
-
-
getList(String key)
→ Future<List?>
-
-
getMap(String key)
→ Future<Map<String, dynamic>?>
-
-
getObject<T extends MeteorSharedObject>(String key, T constructor())
→ Future<T?>
-
获取缓存对象
T 是继承自MeteorSharedObject类的的对象
-
getString(String key)
→ Future<String?>
-
-
getValue(String key)
→ Future
-
-
setBool(String key, bool? value)
→ Future<void>
-
-
setBytes(String key, List<int>? value)
→ Future<void>
-
-
setDouble(String key, double? value)
→ Future<void>
-
-
setInt(String key, int? value)
→ Future<void>
-
-
setList(String key, List? value)
→ Future<void>
-
-
setMap(String key, Map<String, dynamic>? value)
→ Future<void>
-
-
setObject<T extends MeteorSharedObject>(String key, T? value)
→ Future<void>
-
缓存对象
T 是继承自MeteorSharedObject类的的对象
-
setString(String key, String? value)
→ Future<void>
-
-
setValue(String key, dynamic value)
→ Future<void>
-
value 只能是String、int、double、bool、null(移除)、
List<String、int、double、bool>
Map<String, (String、int、double、bool)>