There will be no
redis db. From the documentation:
You can instantiate a RedisCollection on both client and on the server. The collection can be either unnamed (unmanaged, just in-memory) or must be “redis” as Redis doesn’t have any concept of namespaced collections.
So, “redis” is just a required value to distinguish between a mini-redis collection and a real Redis collection:
R1 = new Meteor.RedisCollection(null); // mini-redis
R1 = new Meteor.RedisCollection('redis'); // real Redis
There is no
meteor redis type command. If you have used a real Redis collection, you can just use the
redis-cli command to interact with Redis from the command line.
Finally, your sample code:
Redis.set statement is not correct for a Redis set operation: you need a key, value pair:
will add a key ‘prova’ with a value ‘elemento’ to Redis:
redis-cli get prova
[EDIT: To clarify choose one of managed or unmanaged collection. There is only one actual Redis database and only one collection. I suspect trying to naively add multiple collections and/or a mix of unmanaged and managed collections would result in endless fun ]