UNPKG

@valkey/valkey-glide

Version:

General Language Independent Driver for the Enterprise (GLIDE) for Valkey

26 lines (25 loc) 863 B
"use strict"; /** * Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.EvictionPolicy = void 0; /** * Enum representing cache eviction policies. * * Eviction policies determine which entries are removed from the cache * when the cache reaches its maximum memory limit. */ var EvictionPolicy; (function (EvictionPolicy) { /** * Least Recently Used eviction policy. * Removes the entries that have been accessed least recently. */ EvictionPolicy[EvictionPolicy["LRU"] = 0] = "LRU"; /** * Least Frequently Used eviction policy. * Removes the entries that have been accessed least frequently. */ EvictionPolicy[EvictionPolicy["LFU"] = 1] = "LFU"; })(EvictionPolicy || (exports.EvictionPolicy = EvictionPolicy = {}));