mdast2docx logo Md2Docx
Version 0.1.0API DocsFunctions

generateCacheKey()

Updated 22 Oct 2026

generateCacheKey(ignoreKeys, namespace, ...args): Promise<string>

Defined in: cache.ts:172

Generates a consistent 64-bit hash key for caching based on input arguments.

  • Serializes objects using stableSerialize
  • Combines all arguments into a single stable string

Parameters

ignoreKeys

string[]

Keys to exclude from object serialization

namespace

string

args

...unknown[]

Values to base the cache key on (objects, arrays, or primitives)

Returns

Promise<string>

A stable 64-bit hash string

On this page