karlseguin/the-little-redis-book — Issue #20: (error) ERR Operation against a key holding the wrong kind of value
Author: sillygwailo
Created: 2012-02-04 09:43:25+00:00
State: open

In the data structures chapter, you get us to create a couple of sets, `friends:leto` and `friends:duncan`. In the next section, you get us to add scores to the set items, using `zadd friends:leto 100 ghanima` etc. I get the following error, though:

```
(error) ERR Operation against a key holding the wrong kind of value
```

Are sets and sorted sets completely different data structures? I was able to get through the chapter by choosing a different name for the sorted lists (`zadd sfriends` etc.) and couldn't find anything online to support the assertion that sets and sorted sets are two distinct data types.