getName abstract method
Returns a descriptive name for this eviction policy.
The name is useful for:
- Logging and debugging to identify which eviction strategy is active.
- Metrics collection (e.g., tracking eviction counts per policy).
- Dynamically selecting policies at runtime.
Example:
print('Using eviction policy: ${policy.getName()}'); // "LRU"
Implementation
String getName();