Skip to content

Commit

Permalink
Use more explicit method under evict & update
Browse files Browse the repository at this point in the history
  • Loading branch information
armetiz committed Aug 11, 2015
1 parent 1c3dfb8 commit 14053e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class ProductManager
/**
* @CacheEvict(caches="products", key="product.getSku()")
*/
public function saveProduct(Product $product)
public function removeProduct(Product $product)
{
// saving product ...
}
Expand All @@ -238,7 +238,7 @@ class ProductManager
/**
* @CacheEvict(caches="products", allEntries=true)
*/
public function saveProduct(Product $product)
public function removeProduct(Product $product)
{
// saving product ...
}
Expand Down Expand Up @@ -269,7 +269,7 @@ class ProductManager
/**
* @CacheUpdate(caches="products", key="product.getSku()")
*/
public function saveProduct(Product $product)
public function updateProduct(Product $product)
{
// saving product....
Expand All @@ -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
}
Expand Down

0 comments on commit 14053e3

Please sign in to comment.