Package com.jayway.jsonpath.spi.cache
Class LRUCache
- java.lang.Object
-
- com.jayway.jsonpath.spi.cache.LRUCache
-
-
Constructor Summary
Constructors Constructor Description LRUCache(int limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonPathget(java.lang.String key)Get the Cached JsonPathJsonPathgetSilent(java.lang.String key)voidput(java.lang.String key, JsonPath value)Add JsonPath to the cachevoidremove(java.lang.String key)intsize()java.lang.StringtoString()
-
-
-
Method Detail
-
put
public void put(java.lang.String key, JsonPath value)Description copied from interface:CacheAdd JsonPath to the cache
-
get
public JsonPath get(java.lang.String key)
Description copied from interface:CacheGet the Cached JsonPath
-
getSilent
public JsonPath getSilent(java.lang.String key)
-
remove
public void remove(java.lang.String key)
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-