def get_has_sentregemail(email): return r.get(USER_HAS_SENT_REGEMAIL % email)
def get_vcode(sign): key = USER_SIGN_VCODE % sign return r.get(key)
def get_has_sentemail(email): return r.get(USER_HAS_SENT_EMAIL % email)
def get_passwd(sign): key = USER_PASSWORD_RESET % sign return r.get(key)
def get_enter_userinfo(kind_id, uid): key = USERINFO_HAS_ENTERED % (kind_id, uid) return r.get(key)
def get_profile(uid): ret = r.get(REDIS_USER_INFO % uid).decode('utf-8') if r.get(REDIS_USER_INFO % uid) else '{}' return json.loads(ret)
def get_pageconfig_json(app_id): key = PAGE_CONFIG_INFO % app_id data = r.get(key).decode('utf-8') if r.get(key) else '{}' return data