Flag the ``offset`` in ``name`` as ``value``. Returns a boolean
        indicating the previous value of ``offset``.        

        Like **Redis.SETBIT**        

        :param string name: the key name
        :param int offset: the bit position
        :param bool val: the bit value
        :return: the previous bit (False or True) at the ``offset``
        :rtype: bool
        
        >>> ssdb.set('bit_test', 1)
        True
        >>> ssdb.setbit('bit_test', 1, 1)
        False
        >>> ssdb.get('bit_test')
        3
        >>> ssdb.setbit('bit_test', 2, 1)
        False
        >>> ssdb.get('bit_test')
        7

def setbit(self, name, offset, val):
        """
        Flag the ``offset`` in ``name`` as ``value``. Returns a boolean
        indicating the previous value of ``offset``.        

        Like **Redis.SETBIT**        

        :param string name: the key name
        :param int offset: the bit position
        :param bool val: the bit value
        :return: the previous bit (False or True) at the ``offset``
        :rtype: bool
        
        >>> ssdb.set('bit_test', 1)
        True
        >>> ssdb.setbit('bit_test', 1, 1)
        False
        >>> ssdb.get('bit_test')
        3
        >>> ssdb.setbit('bit_test', 2, 1)
        False
        >>> ssdb.get('bit_test')
        7        
        """                        
        val = int(get_boolean('val', val))
        offset = get_positive_integer('offset', offset)
        return self.execute_command('setbit', name, offset, val)