'Return keys starting with `key`.'

def get_keys(self, key):

    try:
        key = self.make_key((key + u'*'))
        return self.keys(key)
    except redis.exceptions.ConnectionError:
        regex = re.compile(cstr(key).replace(u'|', u'\\|').replace(u'*', u'[\\w]*'))
        return [k for k in frappe.local.cache.keys() if regex.match(k)]
