Reputation: 882
I am new to Redis. I am having a redis set and hset. Can I use same key for set and hset? Documents say key should be unique. Is it necessary to be unique per datatype or unique per server?
Upvotes: 5
Views: 3006
Reputation: 49932
Yes - it is necessary that key names be unique as each key can store one and only one basic data structure - String, Hash, List, Set or a Sorted Set (the underlying type of Bitmaps and HLLs is a String).
Upvotes: 8