# mydb-driver **Repository Path**: mirrors_Automattic/mydb-driver ## Basic Information - **Project Name**: mydb-driver - **Description**: mydb monk driver - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-06-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mydb-driver mydb monk driver (primarily for development) ## how to use ```js var db = require('mydb-driver')('localhost/test'); var users = db.get('users'); users.update(id, { $set: { a: 'b' } }) users.on('op', function(id){}); // ops are published to redis for each object id in addition to the `op` event ``` ### Custom redis host/port ```js var db = require('mydb-driver')('localhost/test', { redisHost: '', redisPort: 6679 }); ``` ### Custom redis client ```js var db = require('mydb-driver')('localhost/test', { redis: myRedis }); ```