'Delete hash names with wildcard `*` and key'

def hdel_keys(self, name_starts_with, key):

    for name in frappe.cache().get_keys(name_starts_with):
        name = name.split(u'|', 1)[1]
        self.hdel(name, key)
