Module: Dalli::PIDCache
- Includes:
- CoreExt
- Defined in:
- lib/dalli/pid_cache.rb
Overview
Dalli::PIDCache is a wrapper class for PID checking to avoid system calls when checking the PID.
Defined Under Namespace
Modules: CoreExt
Class Attribute Summary collapse
-
.pid ⇒ Object
readonly
Returns the value of attribute pid.
Instance Attribute Summary collapse
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
Class Method Summary collapse
Methods included from CoreExt
Class Attribute Details
.pid ⇒ Object (readonly)
Returns the value of attribute pid.
13 14 15 |
# File 'lib/dalli/pid_cache.rb', line 13 def pid @pid end |
Instance Attribute Details
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
10 11 12 |
# File 'lib/dalli/pid_cache.rb', line 10 def pid @pid end |
Class Method Details
.update! ⇒ Object
15 16 17 |
# File 'lib/dalli/pid_cache.rb', line 15 def update! @pid = Process.pid end |