From b447489ab8f9b9080ca78d5bbbc7a9d04449a605 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 19 Jan 2015 14:01:48 -0700 Subject: [PATCH] Add ability to specify max object size. (-I) --- manifests/init.pp | 1 + templates/memcached.conf.erb | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 1d196c333..2aa182796 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -23,6 +23,7 @@ $auto_removal = false, $use_sasl = false, $large_mem_pages = false, + $object_size = undef ) inherits memcached::params { # validate type and convert string to boolean if necessary diff --git a/templates/memcached.conf.erb b/templates/memcached.conf.erb index 1586d9426..2ed1e5a64 100644 --- a/templates/memcached.conf.erb +++ b/templates/memcached.conf.erb @@ -67,3 +67,8 @@ logfile <%= @logfile -%> # Disable automatic removal of items from the cache when out of memory -M <% end -%> + +<% if @object_size -%> +# Max Object size +-I <%= object_size %> +<% end -%>