Skip to content

Instantly share code, notes, and snippets.

@Masum-Osman
Created July 4, 2022 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Masum-Osman/83a02891b7ad6d5f712d73b78fe2f992 to your computer and use it in GitHub Desktop.
Save Masum-Osman/83a02891b7ad6d5f712d73b78fe2f992 to your computer and use it in GitHub Desktop.
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