Skip to content

Caching

Alex edited this page Jan 29, 2021 · 1 revision

Disabled by default

the response cache can be enabled by overriding GetCacheKey() which will cause subsequent calls to ExecuteAsync() to get the result from the cache.

Note: Responses are cached per CommandKey.

To enable in a command:

protected override string GetCacheKey()
{
    return "key";
}
Clone this wiki locally