code: def as_items(self, decode=False):
          
          items = self.database.zrange(self.key, 0, -1, withscores=True)
          if decode:
              items = [(_decode(k), score) for k, score in items]
          return items
docs: Return a list of 2-tuples consisting of key/score.