DistCacheManager
The DistCacheManager is available only to be used as Read-only. update is not implemented.
Extends
CacheManager
class DistCacheManager extends CacheManager
Overwritten Constructor
constructor
constructor(directory :string = "//localhost:8080/adsum/cache"): DistCacheManager
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
directory | string | No | "//localhost:8080/adsum/cache" | The distant cache directory that could be access via url |
Overwritten Methods
update
Not supported
Inherited Methods
getLastPublishDate
async getLastPublishDate(siteId: int, options: CacheOptions): Promise<Date|null>
Parameters:
Name | Type | Required | Description |
---|---|---|---|
siteId | int | Yes | |
options | CacheOptions | Yes |
Returns:
The last published date retrieved from the API. It is null if the Published / Draft feature is not enabled.
Type: Promise<Date|null>
needsUpdate
async needsUpdate(siteId: int, options: CacheOptions): Promise<{needsUpdate: true, lastPublishedDate: Date|null, hasCache: boolean, hasInternetConnexion: boolean, lastCacheUpdateDate: null|Date}, Error>)
Parameters:
Name | Type | Required | Description |
---|---|---|---|
siteId | int | Yes | |
options | CacheOptions | Yes |
Returns:
Type: Promise<object, Error>
Find bellow the details of the properties
Name | Type | Description |
---|---|---|
needsUpdate | boolean | |
lastPublishedDate | Date | null | |
hasCache | boolean | |
hasInternetConnexion | boolean | |
lastCacheUpdateDate | boolean |