use delete_key;
use key_exist;
use Connection;
/**
* Securely deletes a key from Redis if it exists.
* This function first checks if the key exists in the Redis database.
* If the key exists, it proceeds to delete it. If the key does not exist,
*
* # Arguments
* * `conn` - A mutable reference to the Redis connection.
* * `key` - The key to be securely deleted from Redis.
*
* # Returns
* * `Ok(())` if the key was successfully deleted.
* * `Err(redis::RedisError)` if the key does not exist or if there was an error during the operation.
*/
pub async