praekelt/vumi — pull request #699 by hodgestar (2014-01-10 13:49:01+00:00)
Title: Fix redis set truncating for message store cache counters.

Currently we do:

```python
keys_removed = yield self.redis.zremrangebyrank(
self.inbound_key(batch_id), 0, truncate_at)
```

And the Redis docs for `zremrangebyrank` say:

```
Removes all elements in the sorted set stored at key with rank between start and stop.
```