1 ! Copyright (C) 2010 John Benediktsson
2 ! See http://factorcode.org/license.txt for BSD license
4 USING: help.syntax help.markup io.sockets math memcached
5 quotations sequences strings ;
11 "Holds an " { $link inet } " object with the address of "
12 "an Memcached server."
16 { $values { "quot" quotation } }
18 "Opens a network connection to the " { $link memcached-server }
19 " and runs the specified quotation."
23 { $values { "key" string } { "val" string } }
29 { $values { "val" string } { "key" string } }
31 "Sets a single key to a particular value, whether the item "
36 { $values { "val" string } { "key" string } }
38 "Adds an item only if the item does not already exist. "
39 "If the item already exists, throws an error."
43 { $values { "val" string } { "key" string } }
45 "Replaces an item only if it already eixsts. "
46 "If the item does not exist, throws an error."
50 { $values { "key" string } }
56 { $values { "val" string } { "key" string } }
58 "Appends the value to the specified item."
62 { $values { "val" string } { "key" string } }
64 "Prepends the value to the specified item."
68 { $values { "key" string } { "val" string } }
70 "Increments the value of the specified item by 1."
74 { $values { "amt" string } { "key" string } { "val" string } }
76 "Increments the value of the specified item by the specified amount."
80 { $values { "key" string } { "val" string } }
82 "Decrements the value of the specified item by 1."
86 { $values { "amt" string } { "key" string } { "val" string } }
88 "Decrements the value of the specified item by the specified amount."
92 { $values { "version" string } }
94 "Retrieves the version of the " { $link memcached-server } "."
99 "Used as a keep-alive. Also flushes any outstanding quiet gets."
103 { $values { "stats" sequence } }
105 "Get various statistics about the " { $link memcached-server } "."
110 "Deletes all the items in the cache now."
114 { $values { "seconds" integer } }
116 "Deletes all the items in the cache sometime in the future."
121 "Close the connection to the " { $link memcached-server } "."