redisearch
Advanced tools
Comparing version
@@ -96,2 +96,6 @@ 'use strict'; | ||
Search.prototype.count = async function (namespace) { | ||
return await redisClient.scard(`${namespace}:ids`); | ||
}; | ||
function getKeys(namespace, data) { | ||
@@ -183,2 +187,3 @@ var keys = {}; | ||
cmds.push(['sadd', namespace + ':id:' + id + ':indices', index]); | ||
cmds.push(['sadd', namespace + ':ids', id]); | ||
} | ||
@@ -185,0 +190,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "A plugin to search data with redis", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
17987
0.89%310
1.31%