Interface CacheModel

interface CacheModel {
    id?: string;
    query?: string;
    service?: string;
    value?: any;
}

Properties

id?: string
query?: string

The query sent to the service to retrieve a certain output. This is the 'cache key'. If query is an object, then JSON.stringify it.

service?: string
value?: any

The output of the service