EffectiveMMkvUtils class

特定时间内数据缓存 超过缓存时间后下次获取数据自动删除

Constructors

EffectiveMMkvUtils()
factory

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

clean({required String cacheKey}) → void
清除缓存 cacheKey 缓存key
getString({required String cacheKey}) Future<String>
获取有效数据 cacheKey 缓存key
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putString({required String cacheKey, required String value, Duration duration = const Duration()}) → void
缓存有效数据 cacheKey 缓存key value 缓存数据 duration 缓存时间
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance EffectiveMMkvUtils
no setter