Package com.redis.om.spring.repository
Interface RedisDocumentRepository<T,ID>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.keyvalue.repository.KeyValueRepository<T,,ID> org.springframework.data.repository.ListCrudRepository<T,,ID> org.springframework.data.repository.ListPagingAndSortingRepository<T,,ID> org.springframework.data.repository.PagingAndSortingRepository<T,,ID> org.springframework.data.repository.query.QueryByExampleExecutor<T>,org.springframework.data.repository.Repository<T,ID>
- All Known Implementing Classes:
SimpleRedisDocumentRepository
@NoRepositoryBean
public interface RedisDocumentRepository<T,ID>
extends org.springframework.data.keyvalue.repository.KeyValueRepository<T,ID>, org.springframework.data.repository.query.QueryByExampleExecutor<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteById(ID id, redis.clients.jedis.json.Path2 path) getExpiration(ID id) <F> Iterable<F> getFieldsByIds(Iterable<ID> ids, MetamodelField<T, F> field) getIds()org.springframework.data.domain.Page<ID> getIds(org.springframework.data.domain.Pageable pageable) Returns aPageof ids meeting the paging restriction provided in thePageableobject.booleansetExpiration(ID id, Long expiration, TimeUnit timeUnit) <S extends T>
Supdate(org.springframework.data.domain.Example<S> example) <S extends T>
Supdate(S entity) <S extends T>
voidvoidupdateField(T entity, MetamodelField<T, ?> field, Object value) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
getIds
-
getIds
Returns aPageof ids meeting the paging restriction provided in thePageableobject.- Parameters:
pageable- encapsulates pagination information- Returns:
- a page of ids
-
deleteById
-
updateField
-
getFieldsByIds
-
getExpiration
-
setExpiration
-
bulkLoad
- Throws:
IOException
-
update
-
getKeyspace
String getKeyspace() -
update
-
updateAll
-