Skip to content

@lubusin/wp-frappe-data-store / getResourceKey

Function: getResourceKey() ​

getResourceKey(doctype, name): string

Defined in: src/utils.ts:54

Generates a deterministic cache key for a single resource document.

Parameters ​

doctype ​

string

The Frappe DocType name.

name ​

string

The unique document name/identifier.

Returns ​

string

Combined string key formatted as doctype:name.

Released under the MIT License.