CreateResourceCacheKey

Create a cache key for a given resource. Used together with UpdateResourceCacheKeyStatus and GetResourceCacheStatus to support external cache loading.

This built-in procedure is discussed in the “TDV Caching” section of the TDV User Guide.

Location

/lib/resource/

Inputs

path: The path to the resource.

type: The type of the resource.

Outputs

cachekey: The new cache key for the resource.

Exceptions

IllegalArgumentException: If the path is malformed or the type is illegal.

IllegalStateException: If the resource type does not support being cached.

IllegalStateException: If the resource is not configured for caching.

IllegalStateException: If the data source used by the resource for caching is not properly configured.

NotFoundException: If the resource does not exist.

SecurityException: If the user does not have READ access on all items in the path other than the last one.

SecurityException: If the user does not have WRITE access to the last item in path.