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-3.2.2 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-3.2.1 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-3.2.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-3.1.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-3.0.1 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-3.0.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.16.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.15.2 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.15.1 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.15.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.14.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.13.1 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.13.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.12.2 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.12.1 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.12.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.11.0 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.10.2 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.10.1 templates/memcached/config/rubber/role/memcached/dalli.rb
rubber-2.10.0 templates/memcached/config/rubber/role/memcached/dalli.rb