Mojo struct
CacheEviction
struct CacheEviction
Aliases
EVICT_NORMAL = 0
: Cache data with normal eviction priority.EVICT_FIRST = 1
: Data cached with this priority will be first in the eviction priority order and will likely be evicted when cache eviction is required. This priority is suitable for streaming data.EVICT_LAST = 2
: Data cached with this priority will be last in the eviction priority order and will likely be evicted only after other data with EVICT_NORMAL or EVICT_FIRST eviction priotity is already evicted. This priority is suitable for data that should remain persistent in cache.EVICT_UNCHANGED = 3
: Do not change eviction priority order as part of this operation.NO_ALLOCATE = 4
: Do not allocate data to cache. This priority is suitable for streaming data.
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Movable
,
UnknownDestructibility
Methods
__eq__
__eq__(self, other: Self) -> Bool
__ne__
__ne__(self, other: Self) -> Bool
__is__
__is__(self, other: Self) -> Bool
__isnot__
__isnot__(self, other: Self) -> Bool
mnemonic
mnemonic(self) -> StringLiteral
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!