This namespace implements various caching utilities. However, using these functions is deprecated in favor of using api-client and cacheKeys.
import * from "@quintype/framework/server/caching";
- Deprecated:
- Please use api-client
Methods
# static authorToCacheKey(publisherId, author) → {string}
Get the cache key for an author
Parameters:
Name | Type | Description |
---|---|---|
publisherId |
number
|
Publisher Id |
author |
Object
|
The Author |
The cache key
string
# static collectionToCacheKey(publisherId, collection) → {string}
Get the cache key for a collection
Parameters:
Name | Type | Description |
---|---|---|
publisherId |
number
|
Publisher Id |
collection |
Object
|
The Collection. Note, this is not recursive |
The cache key
string
# static customUrlToCacheKey(publisherId, page) → {string}
Get the cache key for a customUrl
Parameters:
Name | Type | Description |
---|---|---|
publisherId |
number
|
Publisher Id |
page |
Object
|
The Custom URL |
The cache key
string
# static storyToCacheKey(publisherId, story) → {string}
Get the cache key for a story
Parameters:
Name | Type | Description |
---|---|---|
publisherId |
number
|
Publisher Id |
story |
Object
|
The Story |
The cache key
string