MCPcopy Create free account

hub / github.com/bradfitz/gomemcache / functions

Functions80 in github.com/bradfitz/gomemcache

↓ 11 callersMethodGet
Get gets the item for the given key. ErrCacheMiss is returned for a memcache cache miss. The key must be at most 250 bytes in length.
memcache/memcache.go:335
↓ 9 callersMethodString
()
memcache/selector.go:57
↓ 9 callersMethodreply
(msg string)
memcache/fakeserver_test.go:83
↓ 8 callersMethodClose
Close closes any open connections. It returns the first error encountered closing connections, but always closes all connections. After Close, the C
memcache/memcache.go:836
↓ 8 callersMethodSet
Set writes the given item, unconditionally.
memcache/memcache.go:602
↓ 7 callersMethodonItem
(item *Item, fn func(*Client, *bufio.ReadWriter, *Item) error)
memcache/memcache.go:313
↓ 6 callersMethodpopulateOne
(rw *bufio.ReadWriter, verb string, item *Item)
memcache/memcache.go:665
↓ 6 callersMethodwithAddrRw
(addr net.Addr, fn func(*conn) error)
memcache/memcache.go:367
↓ 5 callersFunctionNew
New returns a memcache client using the provided server(s) with equal weight. If a server is listed multiple times, it gets a proportional amount of w
memcache/memcache.go:122
↓ 4 callersMethodAdd
Add writes the given item, if no value already exists for its key. ErrNotStored is returned if that condition is not met.
memcache/memcache.go:612
↓ 4 callersMethodError
()
memcache/memcache.go:265
↓ 4 callersFunctiontestWithClient
(t *testing.T, c *Client)
memcache/memcache_test.go:171
↓ 4 callersMethodwithKeyAddr
(key string, fn func(net.Addr) error)
memcache/memcache.go:356
↓ 3 callersMethodIncrement
Increment atomically increments key by delta. The return value is the new value after being incremented or an error. If the value didn't exist in memc
memcache/memcache.go:792
↓ 3 callersMethodPickServer
PickServer returns the server address that a given item should be shared onto.
memcache/selector.go:34
↓ 3 callersFunctioncut
Similar to strings.Cut in Go 1.18, but sep can only be 1 byte.
memcache/memcache.go:594
↓ 3 callersMethodextendDeadline
()
memcache/memcache.go:199
↓ 3 callersMethodgetConn
(addr net.Addr)
memcache/memcache.go:293
↓ 3 callersFunctionlegalKey
(key string)
memcache/memcache.go:90
↓ 3 callersMethodnetTimeout
()
memcache/memcache.go:244
↓ 3 callersFunctionscanGetResponseLine
scanGetResponseLine populates it and returns the declared size of the item. It does not read the bytes of the item.
memcache/memcache.go:552
↓ 3 callersMethodwithKeyRw
(key string, fn func(*conn) error)
memcache/memcache.go:376
↓ 2 callersMethodAppend
Append appends the given item to the existing item, if a value already exists for its key. ErrNotStored is returned if that condition is not met.
memcache/memcache.go:632
↓ 2 callersMethodCompareAndSwap
CompareAndSwap writes the given item that was previously returned by Get, if the value was neither modified or evicted between the Get and the Compare
memcache/memcache.go:657
↓ 2 callersMethodDelete
Delete deletes the item with the provided key. The error ErrCacheMiss is returned if the item didn't already exist in the cache.
memcache/memcache.go:740
↓ 2 callersMethodEach
(func(net.Addr) error)
memcache/selector.go:35
↓ 2 callersMethodNetwork
()
memcache/selector.go:56
↓ 2 callersMethodPrepend
Prepend prepends the given item to the existing item, if a value already exists for its key. ErrNotStored is returned if that condition is not met.
memcache/memcache.go:642
↓ 2 callersMethodReplace
Replace writes the given item, but only if the server *does* already hold data for this key
memcache/memcache.go:622
↓ 2 callersMethodSetServers
SetServers changes a ServerList's set of servers at runtime and is safe for concurrent use by multiple goroutines. Each server is given equal weight.
memcache/selector.go:68
↓ 2 callersFunctionbenchPickServer
(b *testing.B, servers ...string)
memcache/selector_test.go:30
↓ 2 callersFunctioncomputeExpTime
(n int64)
memcache/fakeserver_test.go:280
↓ 2 callersMethodcondRelease
condRelease releases this connection if the error pointed to by err is nil (not an error) or is only a protocol level error (e.g. a cache miss). The
memcache/memcache.go:207
↓ 2 callersMethodgetFromAddr
(addr net.Addr, keys []string, cb func(*Item))
memcache/memcache.go:382
↓ 2 callersMethodincrDecr
(verb, key string, delta uint64)
memcache/memcache.go:806
↓ 2 callersFunctionmustSetF
(t *testing.T, c *Client)
memcache/memcache_test.go:163
↓ 2 callersFunctionnewStaticAddr
(a net.Addr)
memcache/selector.go:49
↓ 2 callersFunctionparseGetResponse
parseGetResponse reads a GET response from r and calls cb for each read and allocated Item
memcache/memcache.go:517
↓ 2 callersFunctionwriteExpectf
(rw *bufio.ReadWriter, expect []byte, format string, args ...interface{})
memcache/memcache.go:718
↓ 2 callersFunctionwriteReadLine
(rw *bufio.ReadWriter, format string, args ...interface{})
memcache/memcache.go:706
↓ 1 callersMethodDecrement
Decrement atomically decrements key by delta. The return value is the new value after being decremented or an error. If the value didn't exist in memc
memcache/memcache.go:802
↓ 1 callersMethodDeleteAll
DeleteAll deletes all items in the cache.
memcache/memcache.go:747
↓ 1 callersMethodGetMulti
GetMulti is a batch version of Get. The returned map from keys to items may have fewer elements than the input slice, due to memcache cache misses. Ea
memcache/memcache.go:478
↓ 1 callersFunctionNewFromSelector
NewFromSelector returns a new Client using the provided ServerSelector.
memcache/memcache.go:129
↓ 1 callersMethodPickServer
(key string)
memcache/selector.go:114
↓ 1 callersMethodPing
Ping checks all instances if they are alive. Returns error if any of them is down.
memcache/memcache.go:783
↓ 1 callersMethodServe
(l net.Listener)
memcache/fakeserver_test.go:47
↓ 1 callersMethodTouch
Touch updates the expiry for the given key. The seconds parameter is either a Unix timestamp or, if seconds is less than 1 month, the number of second
memcache/memcache.go:350
↓ 1 callersMethoddial
(addr net.Addr)
memcache/memcache.go:269
↓ 1 callersMethodgetAndTouchFromAddr
(addr net.Addr, key string, expiration int32, cb func(*Item))
memcache/memcache.go:765
↓ 1 callersMethodgetFreeConn
(addr net.Addr)
memcache/memcache.go:229
↓ 1 callersMethodhandleRequestLine
(line string)
memcache/fakeserver_test.go:96
↓ 1 callersMethodmaxIdleConns
()
memcache/memcache.go:251
↓ 1 callersMethodputFreeConn
(addr net.Addr, cn *conn)
memcache/memcache.go:215
↓ 1 callersMethodrelease
release returns this connection back to the client's free pool
memcache/memcache.go:195
↓ 1 callersFunctionresumableError
arbitrary buffered channel size, for readability resumableError returns true if err is only a protocol-level cache error. This is used to determine wh
memcache/memcache.go:82
↓ 1 callersMethodserve
()
memcache/fakeserver_test.go:65
↓ 1 callersFunctiontestTouchWithClient
(t *testing.T, c *Client)
memcache/memcache_test.go:351
↓ 1 callersFunctiontestingKey
(s string)
memcache/fakecerts_test.go:62
↓ 1 callersMethodtouchFromAddr
(addr net.Addr, keys []string, expiration int32)
memcache/memcache.go:447
FunctionBenchmarkOnItem
(b *testing.B)
memcache/memcache_test.go:398
FunctionBenchmarkPickServer
(b *testing.B)
memcache/selector_test.go:21
FunctionBenchmarkPickServer_Single
(b *testing.B)
memcache/selector_test.go:26
FunctionBenchmarkScanGetResponseLine
(b *testing.B)
memcache/memcache_test.go:428
MethodEach
Each iterates over each server calling the given function
memcache/selector.go:93
MethodFlushAll
()
memcache/memcache.go:329
MethodGetAndTouch
Get and Touch the item with the provided key. The error ErrCacheMiss is returned if the item didn't already exist in the cache.
memcache/memcache.go:755
FunctionTestFakeServer
(t *testing.T)
memcache/memcache_test.go:78
FunctionTestLocalhost
(t *testing.T)
memcache/memcache_test.go:43
FunctionTestScanGetResponseLine
(t *testing.T)
memcache/memcache_test.go:439
FunctionTestTLS
(t *testing.T)
memcache/memcache_test.go:92
FunctionTestUnixSocket
Run the memcached binary as a child process and connect to its unix socket.
memcache/memcache_test.go:56
Methodadd
(rw *bufio.ReadWriter, item *Item)
memcache/memcache.go:616
Methodappend
(rw *bufio.ReadWriter, item *Item)
memcache/memcache.go:636
Methodcas
(rw *bufio.ReadWriter, item *Item)
memcache/memcache.go:661
MethodflushAllFromAddr
flushAllFromAddr send the flush_all command to the given addr
memcache/memcache.go:399
Methodping
ping sends the version command to the given addr
memcache/memcache.go:423
Methodprepend
(rw *bufio.ReadWriter, item *Item)
memcache/memcache.go:646
Methodreplace
(rw *bufio.ReadWriter, item *Item)
memcache/memcache.go:626
Methodset
(rw *bufio.ReadWriter, item *Item)
memcache/memcache.go:606