DIStorage
public protocol DIStorage
Universal protocol for contains objects by key
-
Return all storaged object if there is.
Declaration
Swift
var any: [DIComponentInfo : Any] { get }
-
Return storaged object if there is.
Declaration
Swift
func fetch(key: DIComponentInfo) -> Any?
Parameters
key
Unique object identifier
Return Value
storaged object if there is
-
Save object to storage.
Declaration
Swift
func save(object: Any, by key: DIComponentInfo)
Parameters
object
object for save
key
unique object identifier for save and future fetch.
-
Remove all save objects in storage
Declaration
Swift
func clean()