code: public static String put(String username, final int seconds) {
          String key = UUID.randomUUID().toString();
          cache.setex(key, seconds, username);
          return key;
      }
docs: Put username into the token storage with an expire time.
  
  @param username The username.
  @param seconds  The expire time in second.
  @return Then generated token.