Created
July 4, 2022 09:57
-
-
Save Masum-Osman/83a02891b7ad6d5f712d73b78fe2f992 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func DeleteKey(key string) error { | |
var ctx = context.Background() | |
deleteRedisKey := RedisClient.Del(ctx, key) | |
_, err := deleteRedisKey.Result() | |
if err != nil { | |
return err | |
} | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment