registerCacheStore method

void registerCacheStore(
  1. PixaCacheStoreDescriptor cacheStore
)

Registers a cache store descriptor.

Implementation

void registerCacheStore(PixaCacheStoreDescriptor cacheStore) {
  _validateExecutionContract(
    cacheStore,
    cacheStore.executionKind,
    'cache store',
  );
  _putUnique(_cacheStores, cacheStore, 'cache store');
  _claim(
    _cacheStoreNamespaces,
    cacheStore.namespace,
    cacheStore.id,
    'cache store namespace',
  );
}