Redis ORM for NodeJs
Installation
npm install ron
Usage
ron = ;// Client connectionclient = ;// Schema definitionUsers = client;Users;Users;Users;Users;// Record manipulationUsers
The library provide
- Documented and tested API
- Records access with indexes and unique values
- Records are pure object, no state, no magic
Client API
Schema API
- Records::hash
- Records::identifier
- Records::index
- Records::property
- Records::name
- Records::serialize
- Records::temporal
- Records::unique
- Records::unserialize
- Records::validate
Records API
- Records::all
- Records::clear
- Records::count
- Records::create
- Records::exists
- Records::get
- Records::id
- Records::list
- Records::remove
- Records::update
Run tests
Start a redis server on the default port
redis-server ./conf/redis.conf
Run the tests with mocha:
make test