Module: RedisClient::PIDCache

Includes:
CoreExt
Defined in:
lib/redis_client/pid_cache.rb

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.



10
11
12
# File 'lib/redis_client/pid_cache.rb', line 10

def pid
  @pid
end

Instance Attribute Details

#pidObject (readonly)

Returns the value of attribute pid.



7
8
9
# File 'lib/redis_client/pid_cache.rb', line 7

def pid
  @pid
end

Class Method Details

.update!Object



12
13
14
# File 'lib/redis_client/pid_cache.rb', line 12

def update!
  @pid = Process.pid
end