Module: XRuntime
- Extended by:
- XRuntime
- Included in:
- XRuntime
- Defined in:
- lib/x_runtime.rb,
lib/x_runtime/utils.rb,
lib/x_runtime/script.rb,
lib/x_runtime/server.rb,
lib/x_runtime/data_set.rb,
lib/x_runtime/profiler.rb,
lib/x_runtime/middleware.rb
Defined Under Namespace
Modules: Utils
Classes: DataSet, Middleware, Profiler, Script, Server
Constant Summary
collapse
- NameSpace =
"XRuntime::Threshold"
Instance Method Summary
collapse
Instance Method Details
#middleware ⇒ Object
Also known as:
m
13
14
15
|
# File 'lib/x_runtime.rb', line 13
def middleware
@middleware || raise(RuntimeError, "XRuntime::Middleware haven't been used as a middleware.")
end
|
#middleware=(m) ⇒ Object
17
18
19
|
# File 'lib/x_runtime.rb', line 17
def middleware=(m)
@middleware = m
end
|
#profiler ⇒ Object
Also known as:
p
21
22
23
|
# File 'lib/x_runtime.rb', line 21
def profiler
@profiler ||= Profiler.new(middleware.redis, :cache => 200, :expire => 120)
end
|