DICompositeStorage
public class DICompositeStorage : DIStorage
Unite few storages for fetch from first containing and save to all.
-
Undocumented
Declaration
Swift
public init(storages: [DIStorage])
-
Fetch object by key from first containing storage.
Declaration
Swift
public func fetch(key: DIComponentInfo) -> Any?
Parameters
key
unique object identifier
Return Value
storaged object if there is
-
Save object to all storages
Declaration
Swift
public func save(object: Any, by key: DIComponentInfo)
Parameters
object
object for save
key
unique object identifier
-
Remove all save objects from all storages
Declaration
Swift
public func clean()