Class SimpleRedisEnhancedRepository<T,ID>
java.lang.Object
org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
com.redis.om.spring.repository.support.SimpleRedisEnhancedRepository<T,ID>
- All Implemented Interfaces:
RedisEnhancedRepository<T,,ID> org.springframework.data.keyvalue.repository.KeyValueRepository<T,,ID> org.springframework.data.repository.CrudRepository<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.Repository<T,ID>
public class SimpleRedisEnhancedRepository<T,ID>
extends org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
implements RedisEnhancedRepository<T,ID>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityAuditorprotected final RedisEnhancedKeyValueAdapterprotected final FeatureExtractorprotected final RediSearchIndexerprotected final MappingRedisOMConverterprotected final RedisModulesOperations<String>protected final org.springframework.data.keyvalue.core.KeyValueOperations -
Constructor Summary
ConstructorsConstructorDescriptionSimpleRedisEnhancedRepository(org.springframework.data.repository.core.EntityInformation<T, ID> metadata, org.springframework.data.keyvalue.core.KeyValueOperations operations, RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, RedisOMSpringProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]findAll()org.springframework.data.domain.Page<T>findAll(org.springframework.data.domain.Pageable pageable) findAll(org.springframework.data.domain.Sort sort) 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.voidupdateField(T entity, MetamodelField<T, ?> field, Object value) Methods inherited from class org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAllById, findById, saveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
findAllById
-
Field Details
-
modulesOperations
-
metadata
-
operations
protected final org.springframework.data.keyvalue.core.KeyValueOperations operations -
indexer
-
mappingConverter
-
enhancedKeyValueAdapter
-
auditor
-
featureExtractor
-
-
Constructor Details
-
SimpleRedisEnhancedRepository
public SimpleRedisEnhancedRepository(org.springframework.data.repository.core.EntityInformation<T, ID> metadata, org.springframework.data.keyvalue.core.KeyValueOperations operations, @Qualifier("redisModulesOperations") RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, RedisOMSpringProperties properties)
-
-
Method Details
-
getIds
- Specified by:
getIdsin interfaceRedisEnhancedRepository<T,ID>
-
getIds
public org.springframework.data.domain.Page<ID> getIds(org.springframework.data.domain.Pageable pageable) Description copied from interface:RedisEnhancedRepositoryReturns aPageof ids meeting the paging restriction provided in thePageableobject.- Specified by:
getIdsin interfaceRedisEnhancedRepository<T,ID> - Parameters:
pageable- encapsulates pagination information- Returns:
- a page of ids
-
updateField
- Specified by:
updateFieldin interfaceRedisEnhancedRepository<T,ID>
-
getFieldsByIds
- Specified by:
getFieldsByIdsin interfaceRedisEnhancedRepository<T,ID>
-
getExpiration
- Specified by:
getExpirationin interfaceRedisEnhancedRepository<T,ID>
-
findAll
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.repository.ListPagingAndSortingRepository<T,ID> - Specified by:
findAllin interfaceorg.springframework.data.repository.PagingAndSortingRepository<T,ID> - Overrides:
findAllin classorg.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
-
findAll
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable) -
saveAll
-
createKey
-