TLruCache::Add

Add an entry to the cache.

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss