Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(storage): Redis configuration handling and initialization #783

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

appleboy
Copy link
Owner

  • Update go-redis dependency from v9.5.1 to v9.5.3
  • Modify InitAppStatus to pass individual Redis configuration parameters instead of the entire config object
  • Refactor New function in redis.go to accept individual parameters for Redis configuration
  • Remove config dependency from redis.go
  • Add new fields to Storage struct for Redis configuration parameters
  • Update Init method in Storage to use new Redis configuration fields
  • Refactor tests in redis_test.go to use new New function signature
  • Add assertions in TestRedisEngine to verify key reset and value retrieval

- Update `go-redis` dependency from v9.5.1 to v9.5.3
- Modify `InitAppStatus` to pass individual Redis configuration parameters instead of the entire config object
- Refactor `New` function in `redis.go` to accept individual parameters for Redis configuration
- Remove `config` dependency from `redis.go`
- Add new fields to `Storage` struct for Redis configuration parameters
- Update `Init` method in `Storage` to use new Redis configuration fields
- Refactor tests in `redis_test.go` to use new `New` function signature
- Add assertions in `TestRedisEngine` to verify key reset and value retrieval

Signed-off-by: appleboy <[email protected]>
@appleboy appleboy merged commit 2d98064 into master Jun 16, 2024
10 checks passed
@appleboy appleboy deleted the redis branch June 16, 2024 02:37
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