Skip to content

Commit

Permalink
Merge pull request redhat-openstack#55 from mattkenn4545/master
Browse files Browse the repository at this point in the history
Add ability to specify max object size. (-I)
  • Loading branch information
saz committed May 25, 2015
2 parents 11ef5ef + bf3b9c6 commit fbe8ebd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions templates/memcached.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%>

0 comments on commit fbe8ebd

Please sign in to comment.