@capraconsulting/cals-cli
Advanced tools
Comparing version 1.3.0 to 1.4.0
import { Config } from './config'; | ||
interface CacheItem<T> { | ||
cacheTime: number; | ||
data: T; | ||
} | ||
export declare class CacheProvider { | ||
@@ -7,3 +11,12 @@ constructor(config: Config); | ||
private defaultCacheTime; | ||
/** | ||
* Retrieve cache if existent, ignoring the time. | ||
*/ | ||
retrieveJson<T>(cachekey: string): CacheItem<T> | undefined; | ||
/** | ||
* Save data to cache. | ||
*/ | ||
storeJson<T>(cachekey: string, data: T): void; | ||
json<T>(cachekey: string, block: () => Promise<T>, cachetime?: number): Promise<T>; | ||
} | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
var version = "1.3.0"; | ||
var version = "1.4.0"; | ||
@@ -3,0 +3,0 @@ const VERSION = version; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var version = "1.3.0"; | ||
var version = "1.4.0"; | ||
@@ -8,0 +8,0 @@ const VERSION = version; |
{ | ||
"name": "@capraconsulting/cals-cli", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "CLI for repeatable tasks in CALS", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
86586
48
2213