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

Support redis cache driver #51

Merged
merged 7 commits into from
Jul 23, 2023
Merged

Support redis cache driver #51

merged 7 commits into from
Jul 23, 2023

Conversation

necessarylion
Copy link
Member

@necessarylion necessarylion commented Jul 23, 2023

class Config extends AppConfig {
    ...

    @override
    CacheDriverInterface? get customCacheDriver => RedisCacheDriver();
}

@github-actions
Copy link
Contributor

Coverage after merging redis-cache-driver into develop

72.63%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
lib
   app.dart100%100%82.50%..., 70, 71, 92, 93
lib/cache
   cache.dart100%100%85.19%18, 19, 31, 37
   cache_driver_interface.dart100%100%0%..., 16, 4, 6, 8
lib/cache/drivers/file
   file_cache_driver.dart100%100%97.73%67
lib/cache/drivers/redis
   redis_cache_driver.dart100%100%0%..., 52, 54, 56, 59
   redis.dart100%100%0%..., 39, 7, 8, 9
lib/env
   env.dart100%100%100%
lib/exception
   http_exception.dart100%100%100%
   internal_error_exception.dart100%100%100%
   not_found_exception.dart100%100%100%
   query_exception.dart100%100%100%
   unauthorized_exception.dart100%100%100%
   validation_exception.dart100%100%100%
lib/http
   http_controller_handler.dart100%100%89.47%18, 23, 25, 30
   http_cors_handler.dart100%100%87.50%29, 41
   http_error_handler.dart100%100%0%10, 6, 7, 8
   http_response_handler.dart100%100%80%30, 31, 53, 54
   http_request_handler.dart100%100%72.73%..., 30, 31, 40, 45
   http_route_handler.dart100%100%83.78%..., 21, 22, 33, 34
   http_websocket_handler.dart100%100%77.78%16, 19
lib/http/request
   form_request.dart100%100%13.95%..., 92, 93, 97, 98
   dox_request.dart100%100%57.89%..., 234, 235, 237, 85
   request_file.dart100%100%0%..., 48, 49, 50, 7
   http_request_body.dart100%100%76.92%14, 15, 16
   form_data_visitor.dart100%100%0%..., 75, 78, 79, 82
lib/http/response
   dox_cookie.dart100%100%100%
   dox_response.dart100%100%100%
   serializer.dart100%100%86.67%18, 19
lib/interfaces
   router.dart100%100%50%2
   app_config.dart100%100%25%..., 32, 33, 36, 38
   auth.dart100%100%0%14, 26, 5, 7
   dox_service.dart100%100%0%4
lib/ioc
   ioc_container.dart100%100%100%
lib/multi_thread
   multi_thread.dart100%100%100%
   multi_thread_interfaces.dart100%100%100%
   multi_thread_isolate_handler.dart100%100%93.33%27
lib/router
   route.dart100%100%89.42%..., 94, 95, 96, 99
   route_data.dart100%100%100%
lib/server
   dox_server.dart100%100%93.75%32
lib/utils
   aes_encryptor.dart100%100%100%
   extensions.dart100%100%100%
   hash.dart100%100%100%
   utils.dart100%100%100%
   logger.dart100%100%25%..., 48, 5, 51, 6
lib/validation
   dox_validator.dart100%100%93.02%102, 33, 38
   nested_validation_visitor.dart100%100%100%
   validation_item.dart100%100%100%
   validation_rules.dart100%100%78.57%..., 286, 95, 97, 98
lib/websocket
   socket_emitter.dart100%100%6.25%..., 56, 57, 59, 60
   dox_websocket.dart100%100%88%56, 62, 63
   socket_storage.dart100%100%89.29%60, 69, 70
   web_socket_info.dart100%100%100%

@github-actions
Copy link
Contributor

Coverage after merging redis-cache-driver into develop

76.51%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
lib
   app.dart100%100%82.50%..., 70, 71, 92, 93
lib/cache
   cache.dart100%100%100%
   cache_driver_interface.dart100%100%0%..., 16, 4, 6, 8
lib/cache/drivers/file
   file_cache_driver.dart100%100%97.73%67
lib/cache/drivers/redis
   redis_cache_driver.dart100%100%100%
   redis.dart100%100%75%15, 24, 25, 32, 33
lib/env
   env.dart100%100%100%
lib/exception
   http_exception.dart100%100%100%
   internal_error_exception.dart100%100%100%
   not_found_exception.dart100%100%100%
   query_exception.dart100%100%100%
   unauthorized_exception.dart100%100%100%
   validation_exception.dart100%100%100%
lib/http
   http_controller_handler.dart100%100%89.47%18, 23, 25, 30
   http_cors_handler.dart100%100%87.50%29, 41
   http_error_handler.dart100%100%0%10, 6, 7, 8
   http_response_handler.dart100%100%80%30, 31, 53, 54
   http_request_handler.dart100%100%72.73%..., 30, 31, 40, 45
   http_route_handler.dart100%100%83.78%..., 21, 22, 33, 34
   http_websocket_handler.dart100%100%77.78%16, 19
lib/http/request
   form_request.dart100%100%13.95%..., 92, 93, 97, 98
   dox_request.dart100%100%57.89%..., 234, 235, 237, 85
   request_file.dart100%100%0%..., 48, 49, 50, 7
   http_request_body.dart100%100%76.92%14, 15, 16
   form_data_visitor.dart100%100%0%..., 75, 78, 79, 82
lib/http/response
   dox_cookie.dart100%100%100%
   dox_response.dart100%100%100%
   serializer.dart100%100%86.67%18, 19
lib/interfaces
   router.dart100%100%50%2
   app_config.dart100%100%25%..., 31, 32, 35, 37
   auth.dart100%100%0%14, 26, 5, 7
   dox_service.dart100%100%0%4
lib/ioc
   ioc_container.dart100%100%100%
lib/multi_thread
   multi_thread.dart100%100%100%
   multi_thread_interfaces.dart100%100%100%
   multi_thread_isolate_handler.dart100%100%93.33%27
lib/router
   route.dart100%100%89.42%..., 94, 95, 96, 99
   route_data.dart100%100%100%
lib/server
   dox_server.dart100%100%93.75%32
lib/utils
   aes_encryptor.dart100%100%100%
   extensions.dart100%100%100%
   hash.dart100%100%100%
   utils.dart100%100%100%
   logger.dart100%100%25%..., 48, 5, 51, 6
lib/validation
   dox_validator.dart100%100%93.02%102, 33, 38
   nested_validation_visitor.dart100%100%100%
   validation_item.dart100%100%100%
   validation_rules.dart100%100%78.57%..., 286, 95, 97, 98
lib/websocket
   socket_emitter.dart100%100%6.25%..., 56, 57, 59, 60
   dox_websocket.dart100%100%88%56, 62, 63
   socket_storage.dart100%100%89.29%60, 69, 70
   web_socket_info.dart100%100%100%

@github-actions
Copy link
Contributor

Coverage after merging redis-cache-driver into develop

75.16%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
lib
   app.dart100%100%82.50%..., 70, 71, 92, 93
lib/cache
   cache.dart100%100%80.95%10, 23, 24, 9
   cache_driver_interface.dart100%100%0%..., 20, 24, 6, 8
lib/cache/drivers/file
   file_cache_driver.dart100%100%93.62%25, 27, 76
lib/env
   env.dart100%100%100%
lib/exception
   http_exception.dart100%100%100%
   internal_error_exception.dart100%100%100%
   not_found_exception.dart100%100%100%
   query_exception.dart100%100%100%
   unauthorized_exception.dart100%100%100%
   validation_exception.dart100%100%100%
lib/http
   http_controller_handler.dart100%100%89.47%18, 23, 25, 30
   http_cors_handler.dart100%100%87.50%29, 41
   http_error_handler.dart100%100%0%10, 6, 7, 8
   http_response_handler.dart100%100%80%30, 31, 53, 54
   http_request_handler.dart100%100%72.73%..., 30, 31, 40, 45
   http_route_handler.dart100%100%83.78%..., 21, 22, 33, 34
   http_websocket_handler.dart100%100%77.78%16, 19
lib/http/request
   form_request.dart100%100%13.95%..., 92, 93, 97, 98
   dox_request.dart100%100%57.89%..., 234, 235, 237, 85
   request_file.dart100%100%0%..., 48, 49, 50, 7
   http_request_body.dart100%100%76.92%14, 15, 16
   form_data_visitor.dart100%100%0%..., 75, 78, 79, 82
lib/http/response
   dox_cookie.dart100%100%100%
   dox_response.dart100%100%100%
   serializer.dart100%100%86.67%18, 19
lib/interfaces
   router.dart100%100%50%2
   app_config.dart100%100%25%..., 31, 32, 35, 37
   auth.dart100%100%0%14, 26, 5, 7
   dox_service.dart100%100%0%4
lib/ioc
   ioc_container.dart100%100%100%
lib/multi_thread
   multi_thread.dart100%100%100%
   multi_thread_interfaces.dart100%100%100%
   multi_thread_isolate_handler.dart100%100%93.33%27
lib/router
   route.dart100%100%89.42%..., 94, 95, 96, 99
   route_data.dart100%100%100%
lib/server
   dox_server.dart100%100%93.75%32
lib/utils
   aes_encryptor.dart100%100%100%
   extensions.dart100%100%100%
   hash.dart100%100%100%
   utils.dart100%100%100%
   logger.dart100%100%25%..., 48, 5, 51, 6
lib/validation
   dox_validator.dart100%100%93.02%102, 33, 38
   nested_validation_visitor.dart100%100%100%
   validation_item.dart100%100%100%
   validation_rules.dart100%100%78.57%..., 286, 95, 97, 98
lib/websocket
   socket_emitter.dart100%100%6.25%..., 56, 57, 59, 60
   dox_websocket.dart100%100%88%56, 62, 63
   socket_storage.dart100%100%89.29%60, 69, 70
   web_socket_info.dart100%100%100%

@necessarylion necessarylion merged commit 1402763 into develop Jul 23, 2023
2 checks passed
@necessarylion necessarylion deleted the redis-cache-driver branch July 23, 2023 07:15
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.

None yet

1 participant