CacheFlush
CacheFlush is a generic term used in computing to describe an operation that clears or synchronizes a cache. In practice, a flush either writes back modified data from the cache to a lower level of storage and then invalidates the cached copy, or simply invalidates entries to prevent stale data from being used. The concept applies to hardware caches in processors and GPUs as well as to software caches used by operating systems, databases, and applications.
In hardware, caches are organized in levels and may be write-back or write-through. A flush ensures coherence
In software, flush operations clear in-memory caches or push updates to the underlying data stores. For example,
Performance and design considerations: frequent flushing can negate cache benefits; designers balance timing, durability, and coherence
See also: cache coherence, cache invalidation, write-back cache, memory barrier.