@@ -0,0 +1,1575 @@
+/*%0A * Copyright 2011 Sebastian K%C3%B6hler %3Csebkoehler@whoami.org.uk%3E.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage uk.org.whoami.authme.cache.auth;%0A%0Aimport java.util.HashMap;%0A%0Apublic class PlayerCache %7B%0A%0A    private static PlayerCache singleton = null;%0A    private HashMap%3CString, PlayerAuth%3E cache;%0A%0A    private PlayerCache() %7B%0A        cache = new HashMap%3CString, PlayerAuth%3E();%0A    %7D%0A%0A    public void addPlayer(PlayerAuth auth) %7B%0A        cache.put(auth.getNickname(), auth);%0A    %7D%0A%0A    public void updatePlayer(PlayerAuth auth) %7B%0A        cache.remove(auth.getNickname());%0A        cache.put(auth.getNickname(), auth);%0A    %7D%0A%0A    public void removePlayer(String user) %7B%0A        cache.remove(user);%0A    %7D%0A%0A    public boolean isAuthenticated(String user) %7B%0A        return cache.containsKey(user);%0A    %7D%0A%0A    public PlayerAuth getAuth(String user) %7B%0A        return cache.get(user);%0A    %7D%0A%0A    public static PlayerCache getInstance() %7B%0A        if (singleton == null) %7B%0A            singleton = new PlayerCache();%0A        %7D%0A        return singleton;%0A    %7D%0A%7D%0A

Create RegisterCache.java