Skip to content

Commit

Permalink
Merge pull request #71 from biothings/thread-refactor
Browse files Browse the repository at this point in the history
Support redis key delete, export redisClient
  • Loading branch information
tokebe authored Nov 15, 2021
2 parents 42bf004 + e34986f commit 95d2a5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/redis-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 95d2a5f

Please sign in to comment.