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
Cache
s - 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 ...