public class RedisStreamRepository extends AbstractRedisInstanceRepository<Stream> implements StreamRepository
StreamRepository
, uses a RedisStreamDefinitionRepository
in turn.redisOperations, zSetOperations
Constructor and Description |
---|
RedisStreamRepository(org.springframework.data.redis.core.RedisOperations<java.lang.String,java.lang.String> redisOperations,
RedisStreamDefinitionRepository redisStreamDefinitionRepository) |
Modifier and Type | Method and Description |
---|---|
protected Stream |
deserialize(java.lang.String redisKey,
java.lang.String v)
Deserialize from the String representation to the domain object.
|
protected java.lang.String |
serialize(Stream entity)
Provide a String representation of the domain entity.
|
deserializeId, keyFor, serializeId
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findOne, getPrefix, idFromRedisKey, redisKeyFromId, save, save, setPrefix, trackMembership
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RedisStreamRepository(org.springframework.data.redis.core.RedisOperations<java.lang.String,java.lang.String> redisOperations, RedisStreamDefinitionRepository redisStreamDefinitionRepository)
protected Stream deserialize(java.lang.String redisKey, java.lang.String v)
AbstractRedisRepository
deserialize
in class AbstractRedisRepository<Stream,java.lang.String>
redisKey
- the entity idv
- the serialized representation of the domain objectprotected java.lang.String serialize(Stream entity)
AbstractRedisRepository
serialize
in class AbstractRedisRepository<Stream,java.lang.String>