magency Magenty是另一个(在Nohm之后)为node.js和redis编写的对象关系映射器(ORM)
Magenty是另一个(在Nohm之后)为node.js和redis编写的对象关系映射器(ORM) :)。安装$ npm install --save magency用法var magency = require ( 'magency' ) ; var Agency = magency ( 'Rainbow' ) . createAgency ( 'your-prefix' ) ; var u1 = Agency . getInstance ( 'User' , 'user1' , { firstName : 'John' , secondName : 'Smith' } ) u1 . save ( ) u1 = Agency . getInstance ( 'User' , 'user1' , { age : 50 } ) u2 . load ( functio
用户评论