Page Contents
Home > @loopback/context > Binding > refresh
Binding.refresh() method
Invalidate the binding cache so that its value will be reloaded next time. This is useful to force reloading a cached value when its configuration or dependencies are changed. **WARNING**: The state held in the cached value will be gone.
Signature:
refresh(ctx: Context): void;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Context object |
Returns:
void