this class handles everything related to asset caching
More...
#include <resolverContextCache.h>
this class handles everything related to asset caching
◆ resolverContextCache()
PXR_NAMESPACE_USING_DIRECTIVE resolverContextCache::resolverContextCache |
( |
| ) |
|
◆ ~resolverContextCache()
resolverContextCache::~resolverContextCache |
( |
| ) |
|
◆ clearCache()
void resolverContextCache::clearCache |
( |
| ) |
|
◆ getAsset()
assetIdent resolverContextCache::getAsset |
( |
const std::string & |
assetIdentifier, |
|
|
const cacheName & |
selectedCache, |
|
|
const bool & |
isAyonPath |
|
) |
| |
return a struct by first searching through the selected cacheName if no cache hit.
then the function will resolve the path against ayon if even that doesn't work it will return an empty path
- Parameters
-
- Returns
◆ insert()
void resolverContextCache::insert |
( |
assetIdent & |
sourceAssetIdent | ) |
|
move the pair into the preCache by using the move operator it will also check if there is enough space in the preCache and move the preCache if needed.
This function is both locking and blocking so no access will be granted to ayonCache or preCache for the scope of this function
- Parameters
-
sourcePair | the data that you want to add to the cache as an std::pair |
◆ isCacheStatic()
bool resolverContextCache::isCacheStatic |
( |
| ) |
const |
◆ migratePreCacheIntoAyonCache()
void resolverContextCache::migratePreCacheIntoAyonCache |
( |
| ) |
|
move the precache into the AyonCache in order to free the precache
◆ printCache()
void resolverContextCache::printCache |
( |
| ) |
const |
print out every object in the cache for debugging
◆ removeCachedObject() [1/2]
void resolverContextCache::removeCachedObject |
( |
const std::string & |
key | ) |
|
this function allows the deletion of an entry in the cache
- Parameters
-
key | the asset identifier / uri of the usd object. |
◆ removeCachedObject() [2/2]
void resolverContextCache::removeCachedObject |
( |
const std::string & |
key, |
|
|
const cacheName & |
selectedCache |
|
) |
| |
delete an entry in a selected cache.
the PreCache will always we searched for the entry.
- Parameters
-
key | the asset identifier / uri of the usd object. |
selectedCache | enum that allows you to select the cache (cacheName enum) |
◆ setCacheFromPinningFile()
void resolverContextCache::setCacheFromPinningFile |
( |
const std::string & |
pinningFilePath | ) |
|
set up the cache from a pinning file
- Parameters
-
◆ m_ayon
std::optional<AyonApi> resolverContextCache::m_ayon |
|
private |
◆ m_AyonCache
◆ m_AyonCachesharedMutex
std::shared_mutex resolverContextCache::m_AyonCachesharedMutex |
|
mutableprivate |
◆ m_CommonCache
◆ m_CommonCachesharedMutex
std::shared_mutex resolverContextCache::m_CommonCachesharedMutex |
|
mutableprivate |
◆ m_pinningFileHandler
◆ m_PreCache
◆ m_PreCachesharedMutex
std::shared_mutex resolverContextCache::m_PreCachesharedMutex |
|
mutableprivate |
◆ m_static_cache
bool resolverContextCache::m_static_cache |
|
private |
The documentation for this class was generated from the following files: