Class Cache
Caches the input so that all nodes connected to the output retrieve the value only once.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Flow", 15)]
[Obsolete("Use Assign unit instead.")]
public sealed class Cache : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Properties
enter
The moment at which to cache the value. The output value will only get updated when this gets triggered.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
exit
The action to execute once the value has been cached.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ControlOutput exit { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
input
The value to cache when the node is entered.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true)]
public ValueInput input { get; }
Property Value
Type | Description |
---|---|
ValueInput |
output
The cached value, as it was the last time this node was entered.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Cached", primary = true)]
public ValueOutput output { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()