Home Identifier Source Repository
import {SharedCache} from 'deep-cache/lib/SharedCache.js'
public class | source

SharedCache

Shared Cache

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

assure(key: String, value: Object, ttl: Number, callback: Function)

If key exists do nothing, else create it with specified parameters
public

buildKeyFromLambdaRuntime(runtime: Runtime): String

public

buildKeyFromRequest(request: Request): String

public

request(requestObject: Request, callback: Function): Promise

Public Constructors

public constructor(driver: AbstractDriver) source

Params:

NameTypeAttributeDescription
driver AbstractDriver

Public Methods

public assure(key: String, value: Object, ttl: Number, callback: Function) source

If key exists do nothing, else create it with specified parameters

Params:

NameTypeAttributeDescription
key String
value Object
ttl Number
callback Function

public buildKeyFromLambdaRuntime(runtime: Runtime): String source

Params:

NameTypeAttributeDescription
runtime Runtime

Return:

String

public buildKeyFromRequest(request: Request): String source

Params:

NameTypeAttributeDescription
request Request

Return:

String

public request(requestObject: Request, callback: Function): Promise source

Params:

NameTypeAttributeDescription
requestObject Request
callback Function

Return:

Promise