Show
Ignore:
Timestamp:
10/03/07 22:27:28 (2 years ago)
Author:
plindner
Message:

Add append command support written by Filipe Laborde. Tests/protocol doc updates by me.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/server/doc/protocol.txt

    r619 r620  
    5454There are three types of commands.  
    5555 
    56 Storage commands (there are four: "set", "add", "replace", and "cas") 
    57 ask the server to store some data identified by a key. The client 
    58 sends a command line, and then a data block; after that the client 
    59 expects one line of response, which will indicate success or faulure. 
     56Storage commands (there are five: "set", "add", "replace", "append" 
     57and "cas") ask the server to store some data identified by a key. The 
     58client sends a command line, and then a data block; after that the 
     59client expects one line of response, which will indicate success or 
     60faulure. 
    6061 
    6162Retrieval commands (there are two: "get" and "gets") ask the server to 
     
    128129<command name> <key> <flags> <exptime> <bytes> [<unqiue>]\r\n 
    129130 
    130 - <command name> is "set", "add", "replace", or "cas" 
     131- <command name> is "set", "add", "replace", "append", or "cas" 
    131132 
    132133  "set" means "store this data".   
     
    137138  "replace" means "store this data, but only if the server *does* 
    138139  already hold data for this key". 
     140 
     141  "append" means "add this data to an existing key". 
    139142 
    140143  "cas" is a check and set operation which means "store this data but 
     
    183186- "EXISTS\r\n" to indicate that the item you are trying to store with 
    184187a "cas" command has been modified since you last fetched it. 
     188 
    185189 
    186190Retrieval command: