def sismember(self, name, value):
        """Emulate sismember."""
        redis_set = self._get_set(name, 'SISMEMBER')
        if not redis_set:
            return 0

        result = self._encode(value) in redis_set
        return 1 if result else 0