mirror of
https://github.com/SunRed/haste-server.git
synced 2025-09-04 04:50:14 +02:00
Added proper documentation
This commit is contained in:
parent
1efc62a8c5
commit
b4f42219e5
9 changed files with 326 additions and 311 deletions
|
@ -1,11 +1,7 @@
|
|||
const winston = require('winston');
|
||||
const fs = require('fs');
|
||||
const crypto = require('crypto');
|
||||
|
||||
const winston = require('winston');
|
||||
|
||||
// For storing in files
|
||||
// options[type] = file
|
||||
// options[path] - Where to store
|
||||
|
||||
class FileDocumentStore {
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ const mongodb = require('mongodb');
|
|||
|
||||
const MongoDocumentStore = function (config){
|
||||
this.expire = config.expire;
|
||||
this.MongoClient = new mongodb.MongoClient(config.connectionUrl, config.clientOptions);
|
||||
this.MongoClient = new mongodb.MongoClient(config.connectionUri, config.clientOptions);
|
||||
};
|
||||
|
||||
MongoDocumentStore.prototype.set = async function (key, data, callback, skipExpire){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue