@valkey/valkey-glide
    Preparing search index...

    Interface MemoryStats

    Represents a MEMORY STATS response.

    interface MemoryStats {
        allocatorActive: number;
        allocatorAllocated: number;
        allocatorFragmentationBytes: number;
        allocatorFragmentationRatio: number;
        allocatorMuzzy?: number;
        allocatorResident: number;
        allocatorRssBytes: number;
        allocatorRssRatio: number;
        aofBuffer: number;
        clientsNormal: number;
        clientsSlaves: number;
        clusterLinks?: number;
        datasetBytes: number;
        datasetPercentage: number;
        db: Record<number, MemoryStatsDb>;
        dbDictRehashingCount?: number;
        fragmentation: number;
        fragmentationBytes: number;
        functionsCaches?: number;
        keysBytesPerKey: number;
        keysCount: number;
        luaCaches: number;
        overheadDbHashtableLut?: number;
        overheadDbHashtableRehashing?: number;
        overheadTotal: number;
        peakAllocated: number;
        peakPercentage: number;
        replicationBacklog: number;
        rssOverheadBytes: number;
        rssOverheadRatio: number;
        startupAllocated: number;
        totalAllocated: number;
    }
    Index
    allocatorActive: number

    Bytes active (in use) by the allocator.

    allocatorAllocated: number

    Bytes allocated by the allocator.

    allocatorFragmentationBytes: number

    Bytes of allocator fragmentation.

    allocatorFragmentationRatio: number

    Ratio of allocator fragmentation.

    allocatorMuzzy?: number

    Memory used by allocator muzzy pages in bytes.

    Valkey 8.0+ only.

    allocatorResident: number

    Bytes resident (RSS) by the allocator.

    allocatorRssBytes: number

    Bytes of allocator RSS overhead.

    allocatorRssRatio: number

    Ratio of allocator RSS overhead.

    aofBuffer: number

    Memory used for AOF buffer in bytes.

    clientsNormal: number

    Memory used by normal clients in bytes.

    clientsSlaves: number

    Memory used by replica clients in bytes.

    clusterLinks?: number

    Memory used by cluster links in bytes.

    Redis 7.0+ only.

    datasetBytes: number

    Memory used to store dataset in bytes.

    datasetPercentage: number

    Percentage of net memory used for dataset.

    db: Record<number, MemoryStatsDb>

    Per-database overhead keyed by database index.

    dbDictRehashingCount?: number

    Count of db dictionaries currently rehashing.

    Valkey 8.0+ only.

    fragmentation: number

    Overall memory fragmentation ratio.

    fragmentationBytes: number

    Bytes of overall fragmentation.

    functionsCaches?: number

    Memory used by functions caches in bytes.

    Redis 7.0+ only.

    keysBytesPerKey: number

    Average bytes per key.

    keysCount: number

    Total number of keys across all databases.

    luaCaches: number

    Memory used by Lua caches in bytes.

    overheadDbHashtableLut?: number

    Overhead of db hashtable LUT in bytes.

    Valkey 8.0+ only.

    overheadDbHashtableRehashing?: number

    Overhead of db hashtable rehashing in bytes.

    Valkey 8.0+ only.

    overheadTotal: number

    Total memory overhead in bytes.

    peakAllocated: number

    Peak memory consumed by the server in bytes.

    peakPercentage: number

    Percentage of peak.allocated out of total.allocated.

    replicationBacklog: number

    Memory used for replication backlog in bytes.

    rssOverheadBytes: number

    Bytes of RSS overhead.

    rssOverheadRatio: number

    Ratio of RSS overhead.

    startupAllocated: number

    Memory consumed at startup in bytes.

    totalAllocated: number

    Total bytes allocated by the server.