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 commands for the cache #20

Merged
merged 3 commits into from
Mar 17, 2020
Merged

Add commands for the cache #20

merged 3 commits into from
Mar 17, 2020

Conversation

verbit
Copy link

@verbit verbit commented Mar 16, 2020

Add commands to view and clear the token cache.

Those are escpecially useful for debugging purposes. Part of the
commit is also the encapsulation of cache accesses through
functions. This might come in handy if we want to switch or switch
the caching backend.
More background on this can be found in [1]. In short: Go's switch
statement is kinda different to C's (or Java's, f.e.) and can (or
should, as it is idiomatic Go) be used instead of if-else chains.

[1] https://golang.org/doc/effective_go.html#switch
@verbit verbit requested a review from dohse March 16, 2020 17:01
@verbit verbit changed the title Cache commands Add commands for the cache Mar 16, 2020
@verbit verbit merged commit 3c6a975 into master Mar 17, 2020
@verbit verbit deleted the cache-commands branch March 17, 2020 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants