Getting Started
Writing content
API Documentation
Customization
Recipes
API References Develop
@ng-doc/builder / Function

createCache

Creates cache for given files, returns object with file path as key and md5 hash as value

Presentation

function createCache(
  version?: string | undefined,
  files?: string[] | undefined,
  data?: Record<string, unknown> | undefined,
  result?: string | undefined,
): NgDocCachedData<unknown>;

Returns

Parameters

NameTypeDescription
version
string | undefined

version of the current package

files
string[] | undefined

list of files, for which cache should be created

data
Record<string, unknown> | undefined

properties, which should be cached

result
string | undefined

result of the builder, which should be cached