TLruCache::Add

Add an entry to the cache.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/LruCache.h

Include

#include "Containers/LruCache.h"

Syntax

void Add
(
    const KeyType & Key,
    const ValueType & Value
)

Remarks

Add an entry to the cache.

If an entry with the specified key already exists in the cache, the value of the existing entry will be updated. The added or updated entry will be marked as the most recently used one.

Parameters

Parameter

Description

Key

The entry's lookup key.

Value

The entry's value.

See Also