public class RedisMetadataStore
extends java.lang.Object
implements org.springframework.integration.metadata.MetadataStore
MetadataStore. Use this MetadataStore
to achieve meta-data persistence across application restarts.| Constructor and Description |
|---|
RedisMetadataStore(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
Initializes the
RedisTemplate. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String key)
Retrieve the persisted value for the provided key.
|
void |
put(java.lang.String key,
java.lang.String value)
Persists the provided key and value to Redis.
|
java.lang.String |
remove(java.lang.String key) |
public RedisMetadataStore(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
RedisTemplate.
A StringRedisTemplate is used with default properties.connectionFactory - Must not be nullpublic void put(java.lang.String key,
java.lang.String value)
put in interface org.springframework.integration.metadata.MetadataStorekey - Must not be nullvalue - Must not be nullpublic java.lang.String get(java.lang.String key)
get in interface org.springframework.integration.metadata.MetadataStorekey - Must not be nullpublic java.lang.String remove(java.lang.String key)
remove in interface org.springframework.integration.metadata.MetadataStore