Home > typeioc > IResolveWith > cache
Sets cached resolution flag. When resolved, resolution will be stored in cache
Signature:
cache(name?: string): ResolveWithCache<T>;
Parameter | Type | Description |
---|---|---|
name | string |
the name to be used to retrieve resolution form cache |
Returns:
ResolveWithCache<T>