Skip to content

CacheKey()

@blobs/sdk v0.1.0


@blobs/sdk / cache / CacheKey

CacheKey(action, uri): string

Defined in: cache/CacheKey.ts:23

Generates a cache key from a request action and URI.

The result has the form <ACTION>:<URI> and is the canonical format understood by CacheManager.invalidate and parseCacheKey.

Parameters

action

RequestAction

The RequestAction being performed (GET, LIST, etc.).

uri

string

The request URI (path + query string).

Returns

string

The composed cache key.