MMAPValue
@propertyWrapper
public struct MMAPValue<Value>
MMKV缓存属性包装器注解,默认为手工指定或初始值
使用示例: @MMAPValue(“mmapKey”) static var mmapValue: String = “”
-
Undocumented
Declaration
Swift
public init( wrappedValue: Value, _ key: String, defaultValue: Value? = nil, mmapID: String? = nil )
-
Undocumented
Declaration
Swift
public init<WrappedValue>( wrappedValue: WrappedValue? = nil, _ key: String, defaultValue: Value? = nil, mmapID: String? = nil ) where WrappedValue? == Value
-
Undocumented
Declaration
Swift
public var wrappedValue: Value { get set }