Comparing version 0.3.0 to 0.3.1
@@ -19,3 +19,3 @@ export interface Data<V> { | ||
get(def: D): D; | ||
set(val?: T): Promise<any>; | ||
set(val: T, ttl?: number): Promise<any>; | ||
delete(): boolean; | ||
@@ -22,0 +22,0 @@ } |
@@ -27,4 +27,4 @@ 'use strict'; | ||
} | ||
set(val) { | ||
return this.kv.set(this.key, val); | ||
set(val, ttl) { | ||
return this.kv.set(this.key, val, ttl); | ||
} | ||
@@ -31,0 +31,0 @@ delete() { |
{ | ||
"name": "keyv-file", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "File storage adapter for Keyv, using msgpack to serialize data fast and small.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10135