FConcertFileCache

Maintains an in-memory cache of file data, attempting to keep the cache within the given upper memory threshold.

Windows
MacOS
Linux

References

Module

ConcertSyncCore

Header

/Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/ConcertFileCache.h

Include

#include "ConcertFileCache.h"

Syntax

class FConcertFileCache

Remarks

Maintains an in-memory cache of file data, attempting to keep the cache within the given upper memory threshold. @note Will automatically re-cache files if they are changed on disk (via a timestamp change), and un-cache files that are deleted from disk.

Constructors

Name Description

Public function

FConcertFileCache

(
    const FConcertFileCache&
)

Non-copyable.

Public function

FConcertFileCache

(
    const int32 InMinimumNumberOfFilesT...,
    const uint64 InMaximumNumberOfBytes...
)

Destructors

Name Description

Public function

~FConcertFileCache()

Functions

Name Description

Public function

bool

 

CacheFile

(
    const FString& InFilename
)

Cache the given file (if valid).

Public function Const

bool

 

FindFile

(
    const FString& InFilename,
    TArray< uint8 >& OutFileData
)

Find the given file, and get its data.

Public function

bool

 

FindOrCacheFile

(
    const FString& InFilename,
    TArray< uint8 >& OutFileData
)

Find or cache the given file, and get its data.

Public function Const

bool

 

HasCachedFile

(
    const FString& InFilename
)

Is the given file cached?

Public function

bool

 

SaveAndCacheFile

(
    const FString& InFilename,
    TArray< uint8 >&& InFileData
)

Save the given file and add it to the cache.

Public function

void

 

UncacheFile

(
    const FString& InFilename
)

Uncache the given file.

Operators

Name Description

Public function

FConcertFile...

 

operator=

(
    const FConcertFileCache&
)

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