diff --git a/manifests/init.pp b/manifests/init.pp index 08350ed0c..9bcdb48de 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -24,7 +24,8 @@ $use_sasl = false, $use_registry = $::memcached::params::use_registry, $registry_key = 'HKLM\System\CurrentControlSet\services\memcached\ImagePath', - $large_mem_pages = 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 -%>