I've been working on adding samples to github over the holidays. The wxsutils package has a fair bit of sample code around using agents and exposes some simplified primitives such as bulk get/put/remove operations. Just grab the jar and put on the classpath and then create a WXSUtils instance providing your client grid as the constructor parameter. Then you can call the getAll, putAll or removeAll methods for bulk operations.
The redis-wxs package is an implementation of a redis like API for WebSphere eXtreme Scale. It has a database (mysql or db2) with a fixed schema. There is a WXS grid running in front of the database. This is a collection of JVMs which act as a read-through write-behind cache on the state in the database. Client applications interact with this grid.
The clients can work with the grid using a very simple API. The grid basically allows the storage of:
- string/string pairs
- string/long pairs
- long/string pairs
- long/long pairs
It also allows lists and sets of strings or longs with string keys. The lists and sets have efficient primitives to make working with lists and sets easy. Lists have push operations which add new data to the left or right of the list. Pop operations remove items from the left or right. Trim operations reduce the size of the list. The range operation fetches a consecutive series of entries between two indexes from the list.
Set operations are also supported in that you can have a named set of Long values.
All data is stored ultimately in the database through the grid.
You can find the code at my github page