async def reset_all(self, full=True):
        """
        Reset states in DB

        :param full: clean DB or clean only states
        :return:
        """
        conn = await self.redis()

        if full:
            await conn.flushdb()
        else:
            keys = await conn.keys(self.generate_key('*'))
            await conn.delete(*keys)
async def reset_all ( self , full = True ) : conn = await self . redis ( ) if full : await conn . flushdb ( ) else : keys = await conn . keys ( self . generate_key ( '*' ) ) await conn . delete ( * keys )
Reset states in DB

        :param full: clean DB or clean only states
        :return: