I have created .Net 8 version API. I'm using Azure Redis cache in the application.
The Nuget package used to interact with Azure Redis is 'StackExchange.Redis'.
To fetch the data there is function given IDatabase.StringGetAsync() but there is no provision to provide CancellationToken in this function.
How can I achieve this operation timeout capability with StringGetAsync() function. I want to achieve, if this GET operation take more than 1 second then the call be aborted.