makeDefaultKeyEncoder(keyEncoderFn: HashKeyEncoder)| Name | Type | Description |
|---|---|---|
keyEncoderFn* | HashKeyEncoder | The custom key encoder function. |
Sets a custom key encoder function for the cache. This function should take a prompt and an LLM key and return a string that will be used as the cache key.