Add TTL to created keys

This commit is contained in:
2024-02-03 19:49:06 +01:00
parent 5359bb1217
commit 273de7caa1
3 changed files with 35 additions and 14 deletions

View File

@ -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>
)

View File

@ -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"