method
fetch
fetch(key, dv=@sentinel)
public
Hide source
# File lib/drb/timeridconv.rb, line 38 def fetch(key, dv=@sentinel) synchronize do obj = peek(key) if obj == @sentinel return dv unless dv == @sentinel raise InvalidIndexError end @renew[key] = obj # KeepIt return obj end end