1 | /**
|
2 | * flushdb
|
3 | */
|
4 | var 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 | */
|
14 | exports.flushall = flushdb;
|
15 |
|
16 | /**
|
17 | * auth
|
18 | */
|
19 | exports.auth = function auth(mockInstance, password, callback) {
|
20 | mockInstance._callCallback(callback, null, 'OK');
|
21 | }
|