Class: Mcache::Config
- Inherits:
-
Object
- Object
- Mcache::Config
- Defined in:
- lib/mcache/config.rb
Instance Attribute Summary collapse
-
#host(host = 'localhost:11211') ⇒ Object
readonly
Returns the value of attribute host.
-
#namespace(namespace = 'mcache') ⇒ Object
readonly
Returns the value of attribute namespace.
-
#options(options = {}) ⇒ Object
readonly
Returns the value of attribute options.
-
#pool_size(size = 5) ⇒ Object
readonly
Returns the value of attribute pool_size.
-
#timeout(timeout = 5) ⇒ Object
readonly
Returns the value of attribute timeout.
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 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 |