If you are going to store more than just simple key values, you should use hashes and sets.
For example if you have an object in javascript that you want to save from your plugin you can do
var myObj = {
myField: 1,
otherField: 'test'
};
db.setObject('nodebb-plugin-test:test', myObj, function(err) {
));
To retrieve that object later on
db.getObject('nodebb-plugin-test:test', function(err, myObj) {
console.log(myObj);
});
To retrieve just a single field use db.getObjectField('nodebb-plugin-test:test', 'otherField', callback); To set a single field db.setObjectField('nodebb-plugin-test:test', 'otherField', 5, callback);
You can check out the rss plugin to see how this is done.