Class Introduction

Function

Configures cache replacement policies.

Prototype

from mx_rag.cache import EvictPolicy
class EvictPolicy(Enum)

Parameters

Parameter

Data Type

Description

LRU

String

Replaces the cache that has remained unaccessed for the longest duration.

LFU

String

Replaces the cache with the lowest access counts.

FIFO

String

Replaces the cache based on the first-in first-out rule.

RR

String

Replaces the cache randomly.