-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache.js
More file actions
18 lines (14 loc) · 683 Bytes
/
Copy pathcache.js
File metadata and controls
18 lines (14 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const path = require('path'),
electron = require('electron'),
app = electron.app;
var Datastore = require('nedb'),
repoCache = new Datastore({ filename: path.join(app.getPath('userData'), 'repos.db'), autoload: true }),
configCache = new Datastore({ filename: path.join(app.getPath('userData'), 'configcache.db'), autoload: true }),
issueCache = new Datastore({ filename: path.join(app.getPath('userData'), 'issues.db'), autoload: true }),
issueDetailCache = new Datastore({ filename: path.join(app.getPath('userData'), 'issuedetail.db'), autoload: true});
module.exports = {
repo: repoCache,
config: configCache,
issues: issueCache,
issue: issueDetailCache
};