Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TLruCache
Description
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.
| Name | Add |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/LruCache.h |
| Include Path | #include "Containers/LruCache.h" |
void Add
(
const KeyType & Key,
const ValueType & Value
)
Parameters
| Name | Remarks |
|---|---|
| Key | The entry's lookup key. |
| Value | The entry's value. |
See Also
-
AddUninitialized_GetRef
-
Empty
-
Find
-
GetKeys
-
Remove