From 14053e304e50c28aa40a94f08f295c3138639473 Mon Sep 17 00:00:00 2001 From: Thomas Tourlourat Date: Tue, 11 Aug 2015 09:47:52 +0200 Subject: [PATCH] Use more explicit method under evict & update --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6ec6ff4..1b67f02 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,7 @@ class ProductManager /** * @CacheEvict(caches="products", key="product.getSku()") */ - public function saveProduct(Product $product) + public function removeProduct(Product $product) { // saving product ... } @@ -238,7 +238,7 @@ class ProductManager /** * @CacheEvict(caches="products", allEntries=true) */ - public function saveProduct(Product $product) + public function removeProduct(Product $product) { // saving product ... } @@ -269,7 +269,7 @@ class ProductManager /** * @CacheUpdate(caches="products", key="product.getSku()") */ - public function saveProduct(Product $product) + public function updateProduct(Product $product) { // saving product.... @@ -286,7 +286,7 @@ For key generation, [Symfony Expression Language](http://symfony.com/doc/current /** * @CacheUpdate(caches="products", key="product.getSku()") */ - public function saveProduct(Product $product) + public function updateProduct(Product $product) { // do something }