Details
-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
Documentation (Ref Guide, User Guide, etc.), Interactive Demo/Tutorial
-
Low
Description
Should be a wiki page that takes the user through a set of examples, in an interactive fashion.
1. Use Groovy as an interactive console (specify that interactive Java console of choice could be used: BeanShell, Jython, JRuby, even Scala)
2. Basic usage: create cache manager, create cache, put, remove, get, replace, putIfAbsent, size. Demonstrate use of lifespans and maxAge
3. Configure with a transaction manager, demonstrate transactional use
4. Configure with a cache store. Demonstrate how state is persisted. Restart cache, to demonstrate durability of cached data.
5. Configure with eviction. Demonstrate eviction with FIFO.
6. Configure with eviction and a cache store. Demonstrate FIFO + storage
7. Configure with REPL_SYNC + transactions. Start 2 shell instances, and demonstrate caches replicating put, get, remove. Demonstrate with transactions as well.
For each of the above, we should create a configuration file. sample-configurations.xml, with several named caches - 'Local', 'LocalTx', 'CacheStore', 'Eviction', 'CacheStoreEviction', 'ReplicatedTx'. This sample cfg file should be shipped with the distribution so that people can refer to it.