package org.sagebionetworks.web.client.cache;


public interface ClientCache {
	/**
	 * Returns the value from storage, iff storage is supported by this browser and the key/value pair was put into storage
	 * If you try to get a value that has expired, this method will return null.
	 * @param key
	 * @return
	 */
	String get(String key);
	/**
	 * The implementation uses web storage, and is NOT SECURE.  Do not store sensitive data here.
	 * The given key/value pair will survive 20 minutes (max)
	 * 
	 * @param key
	 * @param value
	 */
	void put(String key, String value);
	void put(String key, String value, Long expireTime);
	
	/**
	 * Returns true iff storage is supported by this browser and the key/value pair was put into storage.
	 * Even if the value is contained in the cache, it may be expired.
	 * @param key
	 * @return
	 */
	boolean contains(String key);
}

@@ -681,36 +681,33 @@
  by this browser
- and
+,
  the key/value p
@@ -734,68 +734,20 @@
 rage
-.%0A%09 * Even if the value is contained in the cache, it may be
+, and is not
  exp

update comment only