UNPKG

426 BJavaScriptView Raw
1/**
2 * flushdb
3 */
4var flushdb = exports.flushdb = function (mockInstance, callback) {
5 mockInstance.storage = {};
6
7 mockInstance._callCallback(callback, null, 'OK');
8}
9
10/**
11 * flushall
12 * Exact the same as flushdb because multiple db is not supported yet
13 */
14exports.flushall = flushdb;
15
16/**
17 * auth
18 */
19exports.auth = function auth(mockInstance, password, callback) {
20 mockInstance._callCallback(callback, null, 'OK');
21}