Represents cached resolutions interface.
Signature:
export interface ICache
Property | Type | Description |
---|---|---|
instance | { [name: string]: any; } |
Retrieves resolution interface directly via name. Returns service resolution instance or undefined if no resolution found |
Method | Description |
---|---|
resolve(name) | Resolves an instance of a service |
Resolutions could be retrieved by name. The value of the name is computed as follows (from highest to lowest priority):
name
parameter for the cache
method specified during resolution.
name
parameter used for named registrations.
service parameter representing an object with the name
property.
service parameter representing a string object