func (h *kvHandler) ClearAll(ctx thrift.Context) error {
	if !isAdmin(ctx) {
		return &keyvalue.NotAuthorized{}
	}

	h.Lock()
	defer h.Unlock()

	h.vals = make(map[string]string)
	return nil
}
func (h *kvHandler) ClearAll(ctx thrift.Context) error {
	if !isAdmin(ctx) {
		return &keyvalue.NotAuthorized{}
	}

	h.Lock()
	defer h.Unlock()

	h.vals = make(map[string]string)
	return nil
}
// ClearAll clears all the keys.