Class: Mcache::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/mcache/config.rb

Instance Attribute Summary collapse

Instance Attribute Details

#host(host = 'localhost:11211') ⇒ Object (readonly)

Returns the value of attribute host.



5
6
7
# File 'lib/mcache/config.rb', line 5

def host
  @host
end

#namespace(namespace = 'mcache') ⇒ Object (readonly)

Returns the value of attribute namespace.



5
6
7
# File 'lib/mcache/config.rb', line 5

def namespace
  @namespace
end

#options(options = {}) ⇒ Object (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/mcache/config.rb', line 5

def options
  @options
end

#pool_size(size = 5) ⇒ Object (readonly)

Returns the value of attribute pool_size.



5
6
7
# File 'lib/mcache/config.rb', line 5

def pool_size
  @pool_size
end

#timeout(timeout = 5) ⇒ Object (readonly)

Returns the value of attribute timeout.



5
6
7
# File 'lib/mcache/config.rb', line 5

def timeout
  @timeout
end