<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Usage</title><link>https://sourceforge.net/p/nitrocache/cache/Usage/</link><description>Recent changes to Usage</description><atom:link href="https://sourceforge.net/p/nitrocache/cache/Usage/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 30 Apr 2012 15:19:58 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/nitrocache/cache/Usage/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Usage modified by Hitesh Amritlal Viseria</title><link>https://sourceforge.net/p/nitrocache/cache/Usage/</link><description>&lt;pre&gt;--- v3 
+++ v4 
@@ -1,36 +1,52 @@
-Performance Benchmarks
-======================
-
-All the performance benchmarks done in various configuration and regression testing, have delivered consistent results.
-
-NitroCache scales with O(c) as number of threads increase. The fetch time remains constant irrespective of thread load. The put time increases linearly with threads, the performance and graph curve for put is similar to ehCache.
-
---------------------------------------------------------
-
-Performance Testing
-====================
-System configuration
---------------------
-System Type: x64-based PC
-Processor: Intel(R) Core(TM) i5 CPU 650@3.20GHz, 3333 Mhz, 2 Core(s), 4 Logical Processor(s)
-OS: Windows 7
-
-
-Test Setup
------------
-Threads = 1,2,5,10,15,25,50
-Cache Sizes = 100,200,500,1000,5000,25000,50000
-Number of get operations per test = ~4000000
-Ratio of put v/s get: 20 get operations per put operation
-
-Test Data
----------
-A random set 2000 key-value pairs. Refer to dataRand.csv
-
-Use cases
----------
-1. EHCache (LRU mode), In-memory mode only
-2. cache4j, In-memory mode only
-3. NitroCache - FIFO mode
-4. NitroCache - LRU mode
-
+NitroCache implements java.util.Map interface, which makes it extremely easy to use and pluggable. 
+
+
+Creation
+---------
+~~~~~~~~~~~~~~~~~~~~~~~
+NitroCache&lt;String,String&gt; _cache = null;
+// Every call to NitroCache.getInstance will create new cache. Its not singleton
+_cache = NitroCache.getInstance(5000, CacheEviction.FIFO); 
+~~~~~~~~~~~~~~~~~~~~~~~
+
+Inserting value
+---------------------------------------------------------
+~~~~~~~~~~~~~~~~~~~~~
+_cache.put("1000","hello world");
+System.out.println(_cache.get("1000");
+~~~~~~~~~~~~~~~~~~~~~
+
+Removing key
+---------------------------------------------------------
+~~~~~~~~~~~~~~~~~~~~~~
+_cache.remove("1000");
+~~~~~~~~~~~~~~~~~~~~~~
+
+
+Method list
+------------------------------------------
+Method|Description|
+------|-----------|
+clear()|Clears the cache. Internally creates a new cache|
+containsKey(Object)|Returns true if key present|
+containsValue(Object)|Not Supported|
+entrySet()|Return an entrySet based on current entries*|
+get(Object)|Return value if key is present|
+isEmpty()|Return true if Cache size &gt; 0*|
+keySet()|Return set of keys from the cache*|
+put(K, V)|Add key/value to cache|
+putAll(Map&lt;? extends K, ? extends V&gt;)|In a loop add all key/values|
+remove(Object)|Remove the key if present|
+shutdown()|Stop and clear underlying cache|
+size()|Return size of cache*|
+values()|Return all values from cache*|
+
+ - Methods marked with "*" create a secondary map and use it for operation. The in-flight entries may/may not show-up as this method does not add any lock on the cache, thus avoiding performance hit
+
+Eviction Modes
+---------------
+Mode|Description|Suggested Usage|
+----|-----------|---------------|
+FIFO|Standard First-in-first-out algorithm. put(key,null) will remove the entry and compacts cache. Adding same key/value again moves the entry to end.|Frequent removal and re-entry of key/values|
+FIFO_V2|Optimized for speed FIFO. put(key,null) removes entry but does not immediately compact cache. Adding same key/value again does not change order of entry in FIFO queue|Less frequent removal/replace of values for keys. High throughput.|
+LRU| Standard Least Recently Used algorithm|If LRU provides more hits|
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hitesh Amritlal Viseria</dc:creator><pubDate>Mon, 30 Apr 2012 15:19:58 -0000</pubDate><guid>https://sourceforge.nete105c6a0e2c32f6fe20de2502289d169d6ec7299</guid></item><item><title>WikiPage Performance modified by Hitesh Amritlal Viseria</title><link>https://sourceforge.net/p/nitrocache/cache/Performance/</link><description>&lt;pre&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hitesh Amritlal Viseria</dc:creator><pubDate>Mon, 30 Apr 2012 14:52:57 -0000</pubDate><guid>https://sourceforge.netbdcc4718c76d4a2e35c5bd4de0a3028920cfd15d</guid></item><item><title>WikiPage Home modified by Hitesh Amritlal Viseria</title><link>https://sourceforge.net/p/nitrocache/cache/Home/</link><description>&lt;pre&gt;--- v1 
+++ v2 
@@ -1,27 +1,36 @@
+Performance Benchmarks
+======================
+
+All the performance benchmarks done in various configuration and regression testing, have delivered consistent results.
+
+NitroCache scales with O(c) as number of threads increase. The fetch time remains constant irrespective of thread load. The put time increases linearly with threads, the performance and graph curve for put is similar to ehCache.
+
+--------------------------------------------------------
+
 Performance Testing
 ====================
 System configuration
 --------------------
 System Type: x64-based PC
 Processor: Intel(R) Core(TM) i5 CPU 650@3.20GHz, 3333 Mhz, 2 Core(s), 4 Logical Processor(s)
 OS: Windows 7
 
 
 Test Setup
 -----------
 Threads = 1,2,5,10,15,25,50
 Cache Sizes = 100,200,500,1000,5000,25000,50000
 Number of get operations per test = ~4000000
 Ratio of put v/s get: 20 get operations per put operation
 
 Test Data
 ---------
 A random set 2000 key-value pairs. Refer to dataRand.csv
 
 Use cases
 ---------
-1. EHCache (LRU mode)
-2. cache4j
+1. EHCache (LRU mode), In-memory mode only
+2. cache4j, In-memory mode only
 3. NitroCache - FIFO mode
 4. NitroCache - LRU mode
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hitesh Amritlal Viseria</dc:creator><pubDate>Mon, 23 Apr 2012 07:49:13 -0000</pubDate><guid>https://sourceforge.netb69f0328c995952daf4aebf5eb584cc90efe4390</guid></item><item><title>WikiPage Home modified by Hitesh Amritlal Viseria</title><link>https://sourceforge.net/p/nitrocache/cache/Home/</link><description>Performance Testing
====================
System configuration
--------------------
System Type: x64-based PC
Processor: Intel(R) Core(TM) i5 CPU 650@3.20GHz, 3333 Mhz, 2 Core(s), 4 Logical Processor(s)
OS: Windows 7


Test Setup
-----------
Threads = 1,2,5,10,15,25,50
Cache Sizes = 100,200,500,1000,5000,25000,50000
Number of get operations per test = ~4000000
Ratio of put v/s get: 20 get operations per put operation

Test Data
---------
A random set 2000 key-value pairs. Refer to dataRand.csv

Use cases
---------
1. EHCache (LRU mode)
2. cache4j
3. NitroCache - FIFO mode
4. NitroCache - LRU mode

</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hitesh Amritlal Viseria</dc:creator><pubDate>Mon, 23 Apr 2012 07:33:05 -0000</pubDate><guid>https://sourceforge.net9ecae80cc2c5988b24dc59c6792038c96dbdf64e</guid></item></channel></rss>