typeioc

Home > typeioc > IResolveWith > cache

IResolveWith.cache() method

Sets cached resolution flag. When resolved, resolution will be stored in cache

Signature:

cache(name?: string): ResolveWithCache<T>;

Parameters

Parameter Type Description
name string the name to be used to retrieve resolution form cache

Returns:

ResolveWithCache<T>