K - Ignite cache key type.V - Ignite cache value type.public class CassandraCacheStore<K,V> extends Object implements CacheStore<K,V>
CacheStore backed by Cassandra database.| Constructor and Description |
|---|
CassandraCacheStore(DataSource dataSrc,
KeyValuePersistenceSettings settings,
int maxPoolSize)
Store constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Object key) |
void |
deleteAll(Collection<?> keys) |
V |
load(K key) |
Map<K,V> |
loadAll(Iterable<? extends K> keys) |
void |
loadCache(IgniteBiInClosure<K,V> clo,
Object... args) |
void |
sessionEnd(boolean commit) |
String |
toString() |
void |
write(javax.cache.Cache.Entry<? extends K,? extends V> entry) |
void |
writeAll(Collection<javax.cache.Cache.Entry<? extends K,? extends V>> entries) |
public CassandraCacheStore(DataSource dataSrc, KeyValuePersistenceSettings settings, int maxPoolSize)
dataSrc - Data source.settings - Persistence settings for Ignite key and value objects.maxPoolSize - Max workers thread count.public void loadCache(IgniteBiInClosure<K,V> clo, Object... args) throws javax.cache.integration.CacheLoaderException
loadCache in interface CacheStore<K,V>javax.cache.integration.CacheLoaderExceptionpublic void sessionEnd(boolean commit)
throws javax.cache.integration.CacheWriterException
sessionEnd in interface CacheStore<K,V>javax.cache.integration.CacheWriterExceptionpublic Map<K,V> loadAll(Iterable<? extends K> keys) throws javax.cache.integration.CacheLoaderException
public void write(javax.cache.Cache.Entry<? extends K,? extends V> entry) throws javax.cache.integration.CacheWriterException
public void writeAll(Collection<javax.cache.Cache.Entry<? extends K,? extends V>> entries) throws javax.cache.integration.CacheWriterException
public void delete(Object key) throws javax.cache.integration.CacheWriterException
public void deleteAll(Collection<?> keys) throws javax.cache.integration.CacheWriterException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.28 Release Date : December 12 2025