MCPcopy Create free account
hub / github.com/bradfitz/gomemcache / Item

Struct Item

memcache/memcache.go:163–184  ·  view source on GitHub ↗

Item is an item to be got or stored in a memcached server.

Source from the content-addressed store, hash-verified

161
162// Item is an item to be got or stored in a memcached server.
163type 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.
187type conn struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected