Add TTL to created keys
This commit is contained in:
@ -23,7 +23,9 @@ class RedisLookupAdapterDocumentation extends React.Component {
|
||||
return (
|
||||
<div>
|
||||
<p style={style}>
|
||||
The Redis Lookup data adapter lookup redis for the given key and returns the values .
|
||||
The Redis Lookup data adapter lookup redis for the given key and returns the values.<br/>
|
||||
It supports writing key/values to Redis (SET command). <br/>
|
||||
All created keys will have the TTL configured for the data adapter.
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
|
@ -76,6 +76,17 @@ class RedisLookupAdapterFieldSet extends React.Component {
|
||||
value={config.redis_database}
|
||||
labelClassName="col-sm-3"
|
||||
wrapperClassName="col-sm-9" />
|
||||
<Input type="text"
|
||||
id="redis_ttl"
|
||||
name="redis_ttl"
|
||||
label="Redis key TTL"
|
||||
required
|
||||
onChange={this.props.handleFormEvent}
|
||||
help={this.props.validationMessage('redis_ttl', 'Redis key TTL in seconds')}
|
||||
bsStyle={this.props.validationState('redis_ttl')}
|
||||
value={config.redis_ttl}
|
||||
labelClassName="col-sm-3"
|
||||
wrapperClassName="col-sm-9" />
|
||||
<Input type="text"
|
||||
id="redis_username"
|
||||
name="redis_username"
|
||||
|
Reference in New Issue
Block a user