Sample Programs for TayzGrid

Basic Operations

This explains the working of basic operations like Add, Update, Insert, Remove and Delete.

Download .zip Download .ta r.gz


Bulk Operations

This sample program explains how basic operations like Add, Insert, Update, remove and Delete can be performed in bulk.

Download .zip Download .tar.gz


Cache Item Versioning

This explains the cache item version feature in detail. You can insert an item in cache and then if you have to add the same item in cache, it must have the same version as the previously added Item.

Download .zip Download .tar.gz


Continous Query

This sample program elaborates Continuous Query (CQ). You can specify criteria and register it with the data grid. When an item is added to data grid and it matches the criteria, you receive an event against that item.

Download .zip Download .tar.gz


Data Providers

This sample program explains working of backing source (read-through, write-through and write-behind).

Download .zip Download .tar.gz


Dependency

This elaborates the different dependencies specified by TayzGrid and their functionality. These dependencies are key based dependency, file based dependency, SQL dependency, Oracle dependency and database dependency.

Download .zip Download .tar.gz


Events

This sample program explains working of selective and Cache level events. When an operation is performed on any cache item all clients who have notified interest in that item (or key) is informed via notification.

Download .zip Download .tar.gz


Groups and Tags

This explains how to query a cache item based on unique identifiers like tag(s) and group(s). You can query the cache using TayzGrid API for a particular tag/group, and it returns all the cache items having that tag or in that group.

Download .zip Download .tar.gz


Hibernate

This demonstrates how TayzGrid can be used as Hibernate second level cache. It also demonstrates TayzGrid's database synchronization feature which allows you to synchronize classes with database.

Download .zip Download .tar.gz


Item Locking

This sample program depicts how you can lock item(s) in the cache. Lock is used to exclusively lock a cached item so nobody else can read or write it. This item stays locked until either the lock expires or it is unlocked.

Download .zip Download .tar.gz


JCache

This sample program explains JCache API and how you can use JCache API using TayzGrid.

Download .zip Download .tar.gz


Object Query Language

This sample program explains Object Query Language (OQL) with which you can search the cache. Search criteria can include object attributes (e.g. cust.city = 'New York') and you can also include Tags and Named Tags in the query language.

Download .zip Download .tar.gz


Sessions

This sample programs allow you to persist Java Web Sessions in data grid and compact them using fast compact serialization.

Download .zip Download .tar.gz


Tomcat Sessions

This sample programs allow you to persist Tomcat Web Sessions in data grid and compact them using fast compact serialization.

Download .zip Download .tar.gz


Jetty Sessions

This sample programs allow you to persist Jetty Web Sessions in data grid and compact them using fast compact serialization.

Download .zip Download .tar.gz


Spring Framework

This sample code explores the functionality of TayzGrid Spring integration. It lets you store your POJO in the data grid and boost your application performance and scalability.

Download .zip Download .tar.gz


Streaming

You can stream large objects (e.g. movie or audio files), using TayzGrid streaming API. With this API, you can get chunks of data and pass upward one chunk at a time.

Download .zip Download .tar.gz