How to get the usage memory of redis in NodeJS?

Hello,

I’m using in ‘redis’ module in nodeJS.
I want to get the usage memory of redis.
In the terminal the command that give this data is: ‘info memory’. I’m looking for command that give this in nodeJS.

Thanks.

const memoryInfo = await client.info('memory');