diff --git a/src/index.js b/src/index.js index 0fb556f1..3fdb066f 100644 --- a/src/index.js +++ b/src/index.js @@ -8,8 +8,10 @@ const InvalidQueryGraphError = require('./exceptions/invalid_query_graph_error') const debug = require('debug')('bte:biothings-explorer-trapi:main'); const Graph = require('./graph/graph'); const EdgeManager = require('./edge_manager'); +const redisClient = require('./redis-client'); exports.InvalidQueryGraphError = InvalidQueryGraphError; +exports.redisClient = redisClient; exports.TRAPIQueryHandler = class TRAPIQueryHandler { constructor(options = {}, smartAPIPath = undefined, predicatesPath = undefined, includeReasoner = true) { diff --git a/src/redis-client.js b/src/redis-client.js index d41bd02a..a3b2edac 100644 --- a/src/redis-client.js +++ b/src/redis-client.js @@ -21,6 +21,7 @@ const redisClient = hsetAsync: promisify(client.hset).bind(client), hgetallAsync: promisify(client.hgetall).bind(client), expireAsync: promisify(client.expire).bind(client), + delAsync: promisify(client.del).bind(client), // hmsetAsync: promisify(client.hmset).bind(client), // keysAsync: promisify(client.keys).bind(client), // existsAsync: promisify(client.exists).bind(client),