
com.redis.om.spring.repository.RedisDocumentRepository Maven / Gradle / Ivy
package com.redis.om.spring.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.keyvalue.repository.KeyValueRepository;
import org.springframework.data.repository.NoRepositoryBean;
import com.redis.om.spring.metamodel.MetamodelField;
import com.redislabs.modules.rejson.Path;
@NoRepositoryBean
public interface RedisDocumentRepository extends KeyValueRepository {
Iterable getIds();
/**
* Returns a {@link Page} of entities meeting the paging restriction provided in the {@code Pageable} object.
*
* @param pageable encapsulates pagination information
* @return a page of entities
*/
Page getIds(Pageable pageable);
void deleteById(ID id, Path path);
void updateField(T entity, MetamodelField field, Object value);
Iterable getFieldsByIds(Iterable ids, MetamodelField field);
Long getExpiration(ID id);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy