public interface DeclarationSessionCacheService
DeclarationSession| Modifier and Type | Method and Description |
|---|---|
CacheStorageSerializer |
getSerializer()
Return the
CacheStorageSerializer being used by internal caches to serialize and deserialize the keys and values
stored in the CacheStorage |
void |
invalidateDependencies(String globalElementName)
Invalidate all entries that are linked with the global element that has the given name.
|
CacheStorageSerializer getSerializer()
CacheStorageSerializer being used by internal caches to serialize and deserialize the keys and values
stored in the CacheStorageCacheStorageSerializer used by the DeclarationSessionvoid invalidateDependencies(String globalElementName)
ElementDeclaration that referenced a global element with the received name will be
removed.
This method would iterate over the list of keys stored in cache and remove one by one if they match with a partial key. This
has impact in performance and memory if the CacheStorage.getAllKeys() doesn't implement the Set
with streaming support.
For example: If the global element name corresponds to a Configuration, then, all
MetadataResult and
ValueResolverResult obtained from any
OperationElementDeclaration or
SourceElementDeclaration that referenced this config, will be removed.
globalElementName - Copyright © 2022 MuleSoft, Inc.. All rights reserved.