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

Allow Cache Replacement Policy to be configured #84

Merged
merged 1 commit into from
Mar 6, 2018
Merged

Allow Cache Replacement Policy to be configured #84

merged 1 commit into from
Mar 6, 2018

Conversation

SourceDoctor
Copy link
Contributor

configure cache Replacement Policy to prefereed method

Copy link
Member

@alexjfisher alexjfisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add tests and update the docs?

@@ -10,6 +10,13 @@ memory_cache_shared <%= (@memory_cache_shared == 'on' || @memory_cache
<% end -%>
maximum_object_size_in_memory <%= @maximum_object_size_in_memory %>

<% unless @cache_replacement_policy.nil? -%>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are Strings and not Booleans, you can simplify this to just

<% if @cache_replacement_policy -%>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything done, something else to handle or ready to merge?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @SourceDoctor the comment @alexjfisher about the simpler if rather than unless .. nil? still stands.

@traylenator traylenator merged commit 4221f4e into voxpupuli:master Mar 6, 2018
@traylenator traylenator changed the title specify Cache Replacement Policy Allow Cache Replacement Policy to be configured Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants