# File lib/memcache/base.rb, line 40 def replace(key, value, expiry = 0, flags = 0) return nil if get(key).nil? set(key, value, expiry) end