-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Marked some classes as internal * Added changelog * minor
- Loading branch information
Showing
8 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,13 @@ | |
use Cache\TagInterop\TaggableCacheItemInterface; | ||
use Cache\TagInterop\TaggableCacheItemPoolInterface; | ||
use Psr\Cache\CacheItemInterface; | ||
use Psr\Cache\InvalidArgumentException; | ||
|
||
/** | ||
* This class is a decorator for a TaggableCacheItemPoolInterface. It tags everything with predefined tags. | ||
* | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
class FixedTaggingCachePool implements TaggableCacheItemPoolInterface | ||
{ | ||
|
@@ -97,7 +98,7 @@ public function deleteItems(array $keys) | |
public function save(CacheItemInterface $item) | ||
{ | ||
if (!$item instanceof TaggableCacheItemInterface) { | ||
throw new InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.'); | ||
throw new \InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.'); | ||
} | ||
|
||
$item->setTags($this->tags); | ||
|
@@ -111,7 +112,7 @@ public function save(CacheItemInterface $item) | |
public function saveDeferred(CacheItemInterface $item) | ||
{ | ||
if (!$item instanceof TaggableCacheItemInterface) { | ||
throw new InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.'); | ||
throw new \InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.'); | ||
} | ||
|
||
$item->setTags($this->tags); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ | |
* @author Aaron Scherer <[email protected]> | ||
* @author Tobias Nyholm <[email protected]> | ||
* @author Nicolas Grekas <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
class CachePool implements CacheItemPoolInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
* Create a recording CachePool. | ||
* | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
class Factory | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
class HierarchyAndTaggablePool extends TaggablePool implements HierarchicalPoolInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
class HierarchyPool extends CachePool implements HierarchicalPoolInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
class TaggablePool extends CachePool implements TaggableCacheItemPoolInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
/** | ||
* @author Aaron Scherer <[email protected]> | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
class CacheDataCollector extends DataCollector | ||
{ | ||
|