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

Add HTTP response disk cache #7

Closed
wants to merge 1 commit into from
Closed

Add HTTP response disk cache #7

wants to merge 1 commit into from

Conversation

mszostok
Copy link
Owner

@mszostok mszostok commented Nov 1, 2019

Description

  • Add HTTP response disk cache. As the underlying library the "github.com/gregjones/httpcache" is used.

This implementation is heavily inspired by they Kubernetes approach for the kubectl.

By default, the cache will be saved in HOME dir under .cdeowners-validator/cache/http/ folder. This can be changed by setting the HTTP_CACHING_DIRECTORY="/tmp/cache"

Results:
Checking the https://github.com/kyma-project/kyma repository:

  • 1st run: ==> Executing Valid Owner Checker (16.366229522s)
  • 2nd run: ==> Executing Valid Owner Checker (844.978984ms)

    As the underlying library the "github.com/gregjones/httpcache" is used.

    This implementation is heavily inspired by they Kubernetes approach for the kubectl.

    By default, the cache will be saved in HOME dir under `.cdeowners-validator/cache/http/` folder. This can be changed by setting the `HTTP_CACHING_DIRECTORY="/tmp/cache"`

    **Results:**
    Checking the https://github.com/kyma-project/kyma repository:
    - 1st run: `==> Executing Valid Owner Checker (16.366229522s)`
    - 2nd run: `==> Executing Valid Owner Checker (844.978984ms)`
@mszostok
Copy link
Owner Author

mszostok commented Nov 1, 2019

Documentation needs to be added before merging

@mszostok mszostok added enhancement New feature or request WIP Work In Progress labels Nov 5, 2019
@mszostok mszostok force-pushed the master branch 2 times, most recently from 1c4b010 to 1642c1e Compare November 13, 2019 16:41
@mszostok mszostok force-pushed the master branch 13 times, most recently from f565722 to 4adb7be Compare March 29, 2020 20:29
@mszostok
Copy link
Owner Author

mszostok commented May 5, 2020

turned out that currently it is not needed

@mszostok mszostok closed this May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request WIP Work In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant