Collection Names / Name Space
Opened this issue · 3 comments
For Redis collections, why not namespace the keys using a collection name such as:
PostStatus = new Meteor.RedisCollection("post-status");
PostStatus.set("12341234", "processing");
This key would actually be "post-status:12341234" in redis
Although we had this idea, we decided that it is confusing if you are using redis in other parts of your infrastructure.
This question is open to a discussion though :)
Fair enough :) it could be optional like you can just use 'redis' for regular or a name to namespace it. But I see how that could be confusing.
I'm new to Meteor (currently evaluating it, and would prefer to use Redis), but on the topic of namespaces, why isn't the API as follows?
var redisCollection = new Redis.Collection("redis");