lib/memcached-server/client.rb
def cas(key, flags, exptime, bytes, cas_id, data_block)
      command = "cas #{key} #{flags} #{exptime} #{bytes} #{cas_id}\n#{data_block}\n"
      @server.puts(command)

      return @server.gets()
    end
# Sends the server a cas command
# 
# @param key [String] The key of the item to store
# @param flags [Integer] Is an arbitrary unsigned integer (written out in decimal)
# @param exptime [Integer] The exptime of the Item to store
# @param bytes [Integer] The byte size of <data_block>
# @param cas_id [Integer] Is a unique integer value
# @param data_block [String] Is a chunk of arbitrary 8-bit data of length <bytes> 
# @return [String] The reply that describes the result of the operation
Sends the server a cas command
Sends the server a cas command
def cas(key, flags, exptime, bytes, cas_id, data_block)
      command = "cas #{key} #{flags} #{exptime} #{bytes} #{cas_id}\n#{data_block}\n"
      @server.puts(command)
      return @server.gets()
    end
def cas ( key , flags , exptime , bytes , cas_id , data_block ) command = "cas #{key} #{flags} #{exptime} #{bytes} #{cas_id}\n#{data_block}\n" @server . puts ( command ) return @server . gets ( ) end
Sends the server a cas command
Sends the server a cas command
The reply that describes the result of the operation
The reply that describes the result of the operation
String
key
The key of the item to store
The key of the item to store
flags
None
exptime
The exptime of the Item to store
The exptime of the Item to store
bytes
The byte size of 
The byte size of
cas_id
None
data_block
None