Changeset 620 for trunk/server/doc/protocol.txt
- Timestamp:
- 10/03/07 22:27:28 (2 years ago)
- Files:
-
- 1 modified
-
trunk/server/doc/protocol.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/doc/protocol.txt
r619 r620 54 54 There are three types of commands. 55 55 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. 56 Storage commands (there are five: "set", "add", "replace", "append" 57 and "cas") ask the server to store some data identified by a key. The 58 client sends a command line, and then a data block; after that the 59 client expects one line of response, which will indicate success or 60 faulure. 60 61 61 62 Retrieval commands (there are two: "get" and "gets") ask the server to … … 128 129 <command name> <key> <flags> <exptime> <bytes> [<unqiue>]\r\n 129 130 130 - <command name> is "set", "add", "replace", or "cas"131 - <command name> is "set", "add", "replace", "append", or "cas" 131 132 132 133 "set" means "store this data". … … 137 138 "replace" means "store this data, but only if the server *does* 138 139 already hold data for this key". 140 141 "append" means "add this data to an existing key". 139 142 140 143 "cas" is a check and set operation which means "store this data but … … 183 186 - "EXISTS\r\n" to indicate that the item you are trying to store with 184 187 a "cas" command has been modified since you last fetched it. 188 185 189 186 190 Retrieval command:
