Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore
Maintains an in-memory cache of file data, attempting to keep the cache within the given upper memory threshold.
Will automatically re-cache files if they are changed on disk (via a timestamp change), and un-cache files that are deleted from disk.
| Name | FConcertFileCache |
| Type | class |
| Header File | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/ConcertFileCache.h |
| Include Path | #include "ConcertFileCache.h" |
Syntax
class FConcertFileCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FConcertFileCache
(
const FConcertFileCache& |
Non-copyable. | ConcertFileCache.h | |
FConcertFileCache
(
const int32 InMinimumNumberOfFilesToCache, |
ConcertFileCache.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FConcertFileCache() |
ConcertFileCache.h |
Classes
| Name | Remarks |
|---|---|
| FInternalCacheEntry | Internal cache entry that scopes counting the cached file size into the outer file-cache |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| InternalCache | TLruCache< FString, TSharedPtr< FInternalCacheEntry > > | ConcertFileCache.h | ||
| MaximumNumberOfBytesToCache | const uint64 | ConcertFileCache.h | ||
| MinimumNumberOfFilesToCache | const int32 | ConcertFileCache.h | ||
| TotalCachedFileDataBytes | uint64 | ConcertFileCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Cache the given file (if valid). | ConcertFileCache.h | ||
| Find the given file, and get its data. | ConcertFileCache.h | ||
| Find or cache the given file, and get its data. | ConcertFileCache.h | ||
bool HasCachedFile
(
const FString& InFilename |
Is the given file cached? | ConcertFileCache.h | |
| Save the given file and add it to the cache. | ConcertFileCache.h | ||
void UncacheFile
(
const FString& InFilename |
Uncache the given file. | ConcertFileCache.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FConcertFileCache & operator=
(
const FConcertFileCache& |
ConcertFileCache.h |