def userdata_cached(userterm):
 userterm = ''.join([t.strip().lower() for t in userterm.split(' ')])
 return g.username_query_cache.get(userterm)

def userdata_cached ( userterm ) : userterm = '' . join ( [ t . strip ( ) . lower ( ) for t in userterm . split ( ' ' ) ] ) return g . username_query_cache . get ( userterm )
check if user name search term found in cache .