code: def sismember(self, name, value):
          
          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
docs: Emulate sismember.