Skip to content

Commit

Permalink
add username property
Browse files Browse the repository at this point in the history
  • Loading branch information
vcidst committed Sep 20, 2023
1 parent 6bb02b7 commit fa13dfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/lock-stores.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ The `ConcurrentRedisLockStore` recreates the `TicketLock` from the persisted `Ti
- `key_prefix` (default: `None`): The prefix to prepend to lock store keys. Must
be alphanumeric

- `username` (default: `None`): Username used for authentication

- `password` (default: `None`): Password used for authentication
(`None` equals no authentication)

Expand Down
4 changes: 4 additions & 0 deletions rasa/core/lock_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def __init__(
host: Text = "localhost",
port: int = 6379,
db: int = 1,
username: Optional[Text] = None,
password: Optional[Text] = None,
use_ssl: bool = False,
ssl_certfile: Optional[Text] = None,
Expand All @@ -215,6 +216,8 @@ def __init__(
port: The port of the redis server.
db: The name of the database within Redis which should be used by Rasa
Open Source.
username: The username which should be used for authentication with the
Redis database.
password: The password which should be used for authentication with the
Redis database.
use_ssl: `True` if SSL should be used for the connection to Redis.
Expand All @@ -232,6 +235,7 @@ def __init__(
host=host,
port=int(port),
db=int(db),
username=username,
password=password,
ssl=use_ssl,
ssl_certfile=ssl_certfile,
Expand Down

0 comments on commit fa13dfc

Please sign in to comment.