public static String put ( String username , final int seconds ) { String key = UUID . randomUUID ( ) . toString ( ) ; cache . setex ( key , seconds , username ) ; return key ; }
Put username into the token storage with an expire time .