Skip to content

refactor: refactor RediStore to support username parameter#75

Merged
appleboy merged 2 commits intomasterfrom
redis2
Feb 10, 2025
Merged

refactor: refactor RediStore to support username parameter#75
appleboy merged 2 commits intomasterfrom
redis2

Conversation

@appleboy
Copy link
Collaborator

  • Add import for strconv
  • Remove the dial function and its associated comments
  • Update NewRediStore to include username parameter
  • Replace dial with dialClient in NewRediStore
  • Remove dialWithDB function
  • Add dialClient function with username and database handling
  • Update NewRediStoreWithDB to include username parameter
  • Replace dialWithDB with dialClient in NewRediStoreWithDB
  • Update tests to include username parameter in NewRediStore and NewRediStoreWithDB calls

fix #65

- Add import for `strconv`
- Remove the `dial` function and its associated comments
- Update `NewRediStore` to include `username` parameter
- Replace `dial` with `dialClient` in `NewRediStore`
- Remove `dialWithDB` function
- Add `dialClient` function with username and database handling
- Update `NewRediStoreWithDB` to include `username` parameter
- Replace `dialWithDB` with `dialClient` in `NewRediStoreWithDB`
- Update tests to include `username` parameter in `NewRediStore` and `NewRediStoreWithDB` calls

fix #65

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
…tion

- Update authentication comments to include username and password
- Clarify that keyPairs are used for cookie encryption only
- Add username parameter to Redis connection details in comments
- Simplify and clarify comments on Redis connection parameters and return values

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 5d5984e into master Feb 10, 2025
7 checks passed
karantan added a commit to karantan/contrib that referenced this pull request Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant