All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksyzt.gwt.client.common.LocalCache Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.ksyzt.gwt.client.common;

import com.google.gwt.storage.client.Storage;
import com.google.gwt.storage.client.StorageMap;

// TODO: Auto-generated Javadoc

/**
 * The Class LocalCache.
 */
public class LocalCache {

    /**
     * The Constant localStorage.
     */
    private final static Storage localStorage = Storage.getLocalStorageIfSupported();

    /**
     * Gets the cache.
     *
     * @return the cache
     */
    public static StorageMap getCache() {
        if (localStorage == null) {
            return null;
        } else {
            return new StorageMap(localStorage);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy