Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Apache Ignite Quick Start Guide

You're reading from   Apache Ignite Quick Start Guide Distributed data caching and processing made easy

Arrow left icon
Product type Paperback
Published in Nov 2018
Publisher Packt
ISBN-13 9781789347531
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sujoy Acharya Sujoy Acharya
Author Profile Icon Sujoy Acharya
Sujoy Acharya
Arrow right icon
View More author details
Toc

Exploring the Data Grid

Apache Ignite data grids adhere to the JCache specification JSR 107. The JSR 107 specification defines five core interfaces to work with caches:

  • CachingProvider: Defines the API to create, manage and configure CacheManagers
  • CacheManager: Defines APIs to create, manage and configure Caches
  • Cache: Stores key-value pairs
  • Entry: Single key-value pair stored in a cache
  • ExpiryPolicy: Each cache Entry has a time to live. During this time, you can access, update, or remove the entry, but after that, the entry expires. The ExpiryPolicy defines when an Entry will expire.

The JCache API defines the following interfaces to customize cache operations: EntryProcessor, CacheEntryListener, CacheLoader, and CacheWriter.

Let's create a cache and store objects in a data grid.

Create a Java class, Key, as a key to a cache and Pojo as a value:

class Key implements...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image