[#wallet-CachableAmount-Set]
= xref:wallet.adoc[wallet]::xref:wallet/CachableAmount.adoc[CachableAmount]::Set
:relfileprefix: ../../
:mrdocs:

Store a cached balance in the avoid&hyphen;reuse or all slot&period;

== Synopsis

Declared in `&lt;wallet&sol;transaction&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
Set(
    bool avoid&lowbar;reuse,
    xref:CAmount.adoc[CAmount] value);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *avoid&lowbar;reuse*
| Whether to store the value in the avoid&hyphen;reuse slot rather than the all slot&period;
| *value*
| The balance to cache&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
