For a use case, I want to delete a key upon retrieval from Redis server in a single call i.e. key is a one time use. I'm using lettuce library to connect to redis server.
Is there any specific configuration available in redis side or any specific lettuce API I can use? My sample code looks like below.
RedisAsyncCommands<String, String> command = notificationConnection.async();CompletionStage<String> result = command.get(id)
Lettuce: 5.2.2
Redis: 5.0.8
thanks,
Ashok.