V
- the cache value typeK
- the cache key typepublic interface IgniteRepository<V,K extends Serializable> extends org.springframework.data.repository.CrudRepository<V,K>
CrudRepository
.Modifier and Type | Method and Description |
---|---|
IgniteCache<K,V> |
cache()
Returns the Ignite Cache bound to the repository
|
void |
deleteAllById(Iterable<? extends K> ids)
Deletes all the entities for the provided ids.
|
Ignite |
ignite()
Returns the Ignite instance bound to the repository
|
<S extends V> |
save(K key,
S entity)
Saves a given entity using provided key.
|
<S extends V> |
save(K key,
S entity,
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc)
Saves a given entity using provided key with expiry policy
It's suggested to use this method instead of default
CrudRepository.save(Object) that generates IDs
(keys) that are not unique cluster wide. |
<S extends V> |
save(Map<K,S> entities)
Saves all given keys and entities combinations.
|
<S extends V> |
save(Map<K,S> entities,
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc)
Saves all given keys and entities combinations with expiry policy
It's suggested to use this method instead of default
CrudRepository.save(Object) that generates IDs
(keys) that are not unique cluster wide. |
Ignite ignite()
IgniteCache<K,V> cache()
<S extends V> S save(K key, S entity)
CrudRepository.save(Object)
that generates IDs
(keys) that are not unique cluster wide.S
- Entity type.key
- Entity's key.entity
- Entity to save.<S extends V> Iterable<S> save(Map<K,S> entities)
CrudRepository.save(Object)
that generates IDs
(keys) that are not unique cluster wide.S
- Type of entities.entities
- Map of key-entities pairs to save.<S extends V> S save(K key, S entity, @Nullable @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc)
CrudRepository.save(Object)
that generates IDs
(keys) that are not unique cluster wide.S
- Entity type.key
- Entity's key.entity
- Entity to save.expiryPlc
- ExpiryPolicy to apply, if not null.<S extends V> Iterable<S> save(Map<K,S> entities, @Nullable @Nullable javax.cache.expiry.ExpiryPolicy expiryPlc)
CrudRepository.save(Object)
that generates IDs
(keys) that are not unique cluster wide.S
- Type of entities.entities
- Map of key-entities pairs to save.expiryPlc
- ExpiryPolicy to apply, if not null.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024