DeleteAll deletes all items in the cache.
()
| 745 | |
| 746 | // DeleteAll deletes all items in the cache. |
| 747 | func (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. |