[#MemPoolFeeRateEstimatorCache]
= MemPoolFeeRateEstimatorCache
:mrdocs:

MemPoolFeeRateEstimatorCache holds a cache of recent fee rate estimates&period; A cached fee rate is only provided while it is not older than CACHE&lowbar;LIFE and the chain tip has not changed&period;

== Synopsis

Declared in `&lt;policy&sol;fees&sol;mempool&lowbar;estimator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class MemPoolFeeRateEstimatorCache;
----

== Types

[cols="1,4"]
|===
| Name| Description
| xref:MemPoolFeeRateEstimatorCache/FeeRateEstimate.adoc[`FeeRateEstimate`] 
| A pair of conservative and economical fee rate estimates&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:MemPoolFeeRateEstimatorCache/2constructor-0b.adoc[`MemPoolFeeRateEstimatorCache`]         [.small]#[constructor]#
| Constructors
| xref:MemPoolFeeRateEstimatorCache/operator_assign.adoc[`operator&equals;`]  [.small]#[deleted]#
| Deleted copy assignment&semi; the cache is non&hyphen;copyable&period;
| xref:MemPoolFeeRateEstimatorCache/Clear.adoc[`Clear`] 
| Clear cached fee rate estimates&period;
| xref:MemPoolFeeRateEstimatorCache/GetCachedEstimate.adoc[`GetCachedEstimate`] 
| Returns cached estimates if not stale and computed on tip&lowbar;hash, nullopt otherwise&period;
| xref:MemPoolFeeRateEstimatorCache/IsStale.adoc[`IsStale`] 
| Returns true if the cache is empty or older than CACHE&lowbar;LIFE&period;
| xref:MemPoolFeeRateEstimatorCache/Update.adoc[`Update`] 
| Update the cache with new estimates computed on tip&lowbar;hash&period;
|===



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