class Memcached::Response

Defined in:

memcached/response.cr

Constant Summary

STATUSES = {"no_error" => 0, "key_not_found" => 1, "key_exists" => 2, "value_too_large" => 3, "invalid_arguments" => 4, "item_not_stored" => 5, "incr_recr_on_non_numeric_value" => 6, "the_vbucket_belongs_to_another_server" => 7, "authentication_error" => 8, "authentication_continue" => 9, "unknown_command" => 129, "out_of_memory" => 130, "not_supported" => 131, "internal_error" => 132, "busy" => 133, "temporary_failure" => 134}

Constructors

Instance Method Summary

Constructor Detail

def self.new(status_code : UInt8, opcode : UInt8, key_length : UInt32, body : Slice(UInt8), extras : Slice(UInt8), version : Int64) #

[View source]

Instance Method Detail

def body : Slice(UInt8) #

[View source]
def extras : Slice(UInt8) #

[View source]
def key_length : Int32 #

[View source]
def opcode : UInt8 #

[View source]
def status_code : UInt8 #

[View source]
def status_is?(status) #

[View source]
def successful? #

[View source]
def version : Int64 #

[View source]