Sha256: 8fc8484d2b9db4f0036796ec57deef33e10c23d52f5ab7cce3e702e6a9bd8740

Contents?: true

Size: 553 Bytes

Versions: 29

Compression:

Stored size: 553 Bytes

Contents

<%
  @path = "#{Rubber.root}/config/dalli.rb"
%>

module Rubber
  module Dalli
    module Config
      include ::Rails::Initializable

      initializer :set_dalli_cache, :before => :initialize_cache do |app|
        config.action_controller.perform_caching = true
        config.cache_store = :dalli_store,
<%- rubber_instances.for_role('memcached').each do |ic| %>
            '<%= ic.full_name %>:<%= rubber_env.memcached_port %>',
<%- end %>
            { :value_max_bytes => <%= rubber_env.memcached_max_slab_bytes %> }
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
rubber-2.9.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.8.1 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.8.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.7.5 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.7.4 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.7.3 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.7.2 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.7.1 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.7.0 templates/memcached/config/rubber/role/memcached/dalli.rb