think-model-abstract
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -189,2 +189,6 @@ const helper = require('think-helper'); | ||
cache.key = cache.key || helper.md5(sql); | ||
const timeout = cache._keyTimeout; | ||
delete cache._keyTimeout; | ||
const Handle = cache.handle; | ||
@@ -198,3 +202,3 @@ const instance = new Handle(cache); | ||
return this.query(sql).then(data => { | ||
return instance.set(cache.key, data).then(() => { | ||
return instance.set(cache.key, data, timeout).then(() => { | ||
return data; | ||
@@ -201,0 +205,0 @@ }); |
{ | ||
"name": "think-model-abstract", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Abstract adapter for ThinkJS 3.x", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
87514
2912
0