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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from CoreExt

#_fork

Class Attribute Details

.pidObject (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

#pidObject (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