code: def as_set(self, decode=False):
          
          items = self.database.smembers(self.key)
          return set(_decode(item) for item in items) if decode else items
docs: Return a Python set containing all the items in the collection.