lib/memcached/memcached.rb
# Replace a key/value pair. Raises <b>Memcached::NotFound</b> if the key does not exist on the server. The parameters are the same as <tt>set</tt>.
Replace a key/value pair. Raises Memcached::NotFound if the key does not exist on the server. The parameters are the same as set.
Replace a key / value pair . Raises Memcached :: NotFound if the key does not exist on the server . The parameters are the same as set .
def replace(key, value, ttl=@default_ttl, marshal=true, flags=FLAGS)
    value = marshal ? Marshal.dump(value) : value.to_s
    check_return_code(
      Lib.memcached_replace(@struct, key, value, ttl, flags),
      key
    )
  end
def replace ( key , value , ttl = @default_ttl , marshal = true , flags = FLAGS ) value = marshal ? Marshal . dump ( value ) : value . to_s check_return_code ( Lib . memcached_replace ( @struct , key , value , ttl , flags ) , key ) end
Replace a key/value pair.
Replace a key / value pair .
key
value
ttl
marshal
flags