// DeleteMulti batch version of Delete
DeleteMulti batch version of Delete
// DeleteMulti batch version of Delete
func (c *Client) DeleteMulti(ctx context.Context, keys []*datastore.Key) error {
	if err := c.DSClient.DeleteMulti(ctx, keys); err != nil {
		return fmt.Errorf("dscache.Client.DeleteMulti: failed to delete %v", err)
	}
	cKeys := make([]string, len(keys))
	for i, key := range keys {
		cKeys[i] = cacheKey(key)
	}
	c.deleteLocalCache(cKeys...)
	if err := c.Cache.Delete(cKeys...); err != nil {
		log.Printf("dscache.Client.DeleteMulti: failed to delete from cache %v", err)
	}
	return nil
}
func ( c * Client ) DeleteMulti ( ctx context . Context , keys [ ] * datastore . Key ) error { if err := c . DSClient . DeleteMulti ( ctx , keys ) ; err != nil { return fmt . Errorf ( " " , err ) } cKeys := make ( [ ] string , len ( keys ) ) for i , key := range keys { cKeys [ i ] = cacheKey ( key ) } c . deleteLocalCache ( cKeys ... ) if err := c . Cache . Delete ( cKeys ... ) ; err != nil { log . Printf ( " " , err ) } return nil }
DeleteMulti batch version of Delete
DeleteMulti batch version of Delete
// Delete data from cache