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

Cache driver #45

Merged
merged 4 commits into from
Jul 21, 2023
Merged

Cache driver #45

merged 4 commits into from
Jul 21, 2023

Conversation

necessarylion
Copy link
Member

@necessarylion necessarylion commented Jul 21, 2023

Currently support only CacheStore.file

Cache().put('key', 'value');
Cache().forever('key', 'value');

String value = Cache().get('key');
bool has = Cache().has('key');

Cache().forget('key');
Cache().flush();

Cache().tag('auth').put('key', 'value');
Cache().tag('auth').flush();

@github-actions
Copy link
Contributor

Coverage after merging cache-driver into develop

75.40%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
lib
   app.dart100%100%93.10%46, 47
lib/auth
   auth.dart100%100%0%14, 26, 5, 7
lib/cache
   cache.dart100%100%100%
   cache_driver_interface.dart100%100%0%..., 16, 4, 6, 8
   file_cache_driver.dart100%100%100%
lib/config
   app_config.dart100%100%50%51, 53
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/ioc
   ioc_container.dart100%100%100%
lib/request
   form_request.dart100%100%13.95%..., 92, 93, 97, 98
   dox_request.dart100%100%58.14%..., 27, 46, 47, 48
   request_file.dart100%100%0%..., 48, 49, 50, 7
   form_data_visitor.dart100%100%0%..., 75, 78, 79, 82
lib/response
   dox_cookie.dart100%100%100%
   dox_response.dart100%100%100%
   serializer.dart100%100%86.67%18, 19
lib/router
   router.dart100%100%50%2
   route.dart100%100%86.90%..., 91, 92, 95, 97
   route_data.dart100%100%100%
   http_response_handler.dart100%100%88.89%43, 44
   http_request_handler.dart100%100%81.71%..., 41, 42, 54, 55
lib/server
   dox_server.dart100%100%81.82%..., 61, 64, 65, 71
lib/utils
   aes_encryptor.dart100%100%100%
   extensions.dart100%100%100%
   global.dart100%100%100%
   hash.dart100%100%100%
   logger.dart100%100%40%..., 27, 28, 3, 4
   utils.dart100%100%100%
lib/validation
   dox_validator.dart100%100%93.02%102, 33, 38
   nested_validation_visitor.dart100%100%100%
   rules.dart100%100%78.57%..., 286, 95, 97, 98
   validation_item.dart100%100%100%
lib/websocket
   socket_emitter.dart100%100%6.25%..., 55, 56, 58, 59
   dox_websocket.dart100%100%88%59, 65, 66
   socket_storage.dart100%100%89.29%60, 69, 70
   web_socket_info.dart100%100%100%

@github-actions
Copy link
Contributor

Coverage after merging cache-driver into develop

75.40%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
lib
   app.dart100%100%93.10%46, 47
lib/auth
   auth.dart100%100%0%14, 26, 5, 7
lib/cache
   cache.dart100%100%100%
   cache_driver_interface.dart100%100%0%..., 16, 4, 6, 8
   file_cache_driver.dart100%100%100%
lib/config
   app_config.dart100%100%50%51, 53
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/ioc
   ioc_container.dart100%100%100%
lib/request
   form_request.dart100%100%13.95%..., 92, 93, 97, 98
   dox_request.dart100%100%58.14%..., 27, 46, 47, 48
   request_file.dart100%100%0%..., 48, 49, 50, 7
   form_data_visitor.dart100%100%0%..., 75, 78, 79, 82
lib/response
   dox_cookie.dart100%100%100%
   dox_response.dart100%100%100%
   serializer.dart100%100%86.67%18, 19
lib/router
   router.dart100%100%50%2
   route.dart100%100%86.90%..., 91, 92, 95, 97
   route_data.dart100%100%100%
   http_response_handler.dart100%100%88.89%43, 44
   http_request_handler.dart100%100%81.71%..., 41, 42, 54, 55
lib/server
   dox_server.dart100%100%81.82%..., 61, 64, 65, 71
lib/utils
   aes_encryptor.dart100%100%100%
   extensions.dart100%100%100%
   global.dart100%100%100%
   hash.dart100%100%100%
   logger.dart100%100%40%..., 27, 28, 3, 4
   utils.dart100%100%100%
lib/validation
   dox_validator.dart100%100%93.02%102, 33, 38
   nested_validation_visitor.dart100%100%100%
   rules.dart100%100%78.57%..., 286, 95, 97, 98
   validation_item.dart100%100%100%
lib/websocket
   socket_emitter.dart100%100%6.25%..., 55, 56, 58, 59
   dox_websocket.dart100%100%88%59, 65, 66
   socket_storage.dart100%100%89.29%60, 69, 70
   web_socket_info.dart100%100%100%

@github-actions
Copy link
Contributor

Coverage after merging cache-driver into develop

75.40%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
lib
   app.dart100%100%93.10%46, 47
lib/auth
   auth.dart100%100%0%14, 26, 5, 7
lib/cache
   cache.dart100%100%100%
   cache_driver_interface.dart100%100%0%..., 16, 4, 6, 8
   file_cache_driver.dart100%100%100%
lib/config
   app_config.dart100%100%50%51, 53
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/ioc
   ioc_container.dart100%100%100%
lib/request
   form_request.dart100%100%13.95%..., 92, 93, 97, 98
   dox_request.dart100%100%58.14%..., 27, 46, 47, 48
   request_file.dart100%100%0%..., 48, 49, 50, 7
   form_data_visitor.dart100%100%0%..., 75, 78, 79, 82
lib/response
   dox_cookie.dart100%100%100%
   dox_response.dart100%100%100%
   serializer.dart100%100%86.67%18, 19
lib/router
   router.dart100%100%50%2
   route.dart100%100%86.90%..., 91, 92, 95, 97
   route_data.dart100%100%100%
   http_response_handler.dart100%100%88.89%43, 44
   http_request_handler.dart100%100%81.71%..., 41, 42, 54, 55
lib/server
   dox_server.dart100%100%81.82%..., 61, 64, 65, 71
lib/utils
   aes_encryptor.dart100%100%100%
   extensions.dart100%100%100%
   global.dart100%100%100%
   hash.dart100%100%100%
   logger.dart100%100%40%..., 27, 28, 3, 4
   utils.dart100%100%100%
lib/validation
   dox_validator.dart100%100%93.02%102, 33, 38
   nested_validation_visitor.dart100%100%100%
   rules.dart100%100%78.57%..., 286, 95, 97, 98
   validation_item.dart100%100%100%
lib/websocket
   socket_emitter.dart100%100%6.25%..., 55, 56, 58, 59
   dox_websocket.dart100%100%88%59, 65, 66
   socket_storage.dart100%100%89.29%60, 69, 70
   web_socket_info.dart100%100%100%

@necessarylion necessarylion merged commit 498434b into develop Jul 21, 2023
2 checks passed
@necessarylion necessarylion deleted the cache-driver branch July 21, 2023 10:41
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