Item is an item to be got or stored in a memcached server.
| 161 | |
| 162 | // Item is an item to be got or stored in a memcached server. |
| 163 | type Item struct { |
| 164 | // Key is the Item's key (250 bytes maximum). |
| 165 | Key string |
| 166 | |
| 167 | // Value is the Item's value. |
| 168 | Value []byte |
| 169 | |
| 170 | // Flags are server-opaque flags whose semantics are entirely |
| 171 | // up to the app. |
| 172 | Flags uint32 |
| 173 | |
| 174 | // Expiration is the cache expiration time, in seconds: either a relative |
| 175 | // time from now (up to 1 month), or an absolute Unix epoch time. |
| 176 | // Zero means the Item has no expiration time. |
| 177 | Expiration int32 |
| 178 | |
| 179 | // CasID is the compare and swap ID. |
| 180 | // |
| 181 | // It's populated by get requests and then the same value is |
| 182 | // required for a CompareAndSwap request to succeed. |
| 183 | CasID uint64 |
| 184 | } |
| 185 | |
| 186 | // conn is a connection to a server. |
| 187 | type conn struct { |
nothing calls this directly
no outgoing calls
no test coverage detected