Module

caching

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:

View Source server/caching.js, line 1

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

View Source server/caching.js, line 20

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

View Source server/caching.js, line 40

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

View Source server/caching.js, line 54

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

View Source server/caching.js, line 30

The cache key

string