def email_exists(email): ''' check for the existence of email ''' redis_obj = Redis() return redis_obj.check_existence("email:%s:userId" % (email))
def username_exists(username): ''' check for the existence of a username ''' redis_obj = Redis() return redis_obj.check_existence("username:%s:userId" % (username))