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

Cachable amount subdivided into avoid reuse and all balances

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct CachableAmount;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CachableAmount/Get.adoc[`Get`] 
| Return the cached balance from the avoid&hyphen;reuse or all slot&period;
| xref:wallet/CachableAmount/IsCached.adoc[`IsCached`] 
| Return whether the requested balance slot is cached&period;
| xref:wallet/CachableAmount/Reset.adoc[`Reset`] 
| Clear both cached balances&period;
| xref:wallet/CachableAmount/Set.adoc[`Set`] 
| Store a cached balance in the avoid&hyphen;reuse or all slot&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CachableAmount/m_all_value.adoc[`m&lowbar;all&lowbar;value`] 
| Cached balance computed over all outputs&period;
| xref:wallet/CachableAmount/m_avoid_reuse_value.adoc[`m&lowbar;avoid&lowbar;reuse&lowbar;value`] 
| Cached balance computed with avoid&hyphen;reuse enabled&period;
|===



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