MCPcopy
hub / github.com/bradfitz/gomemcache / DeleteAll

Method DeleteAll

memcache/memcache.go:747–751  ·  view source on GitHub ↗

DeleteAll deletes all items in the cache.

()

Source from the content-addressed store, hash-verified

745
746// DeleteAll deletes all items in the cache.
747func (c *Client) DeleteAll() error {
748 return c.withKeyRw("", func(conn *conn) error {
749 return writeExpectf(conn.rw, resultDeleted, "flush_all\r\n")
750 })
751}
752
753// Get and Touch the item with the provided key. The error ErrCacheMiss is
754// returned if the item didn't already exist in the cache.

Callers 1

testWithClientFunction · 0.80

Calls 2

withKeyRwMethod · 0.95
writeExpectfFunction · 0.85

Tested by 1

testWithClientFunction · 0.64