Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -11,13 +11,13 @@ namespace Aws;
* cache, if the number of cached items exceeds the allowed number, the first
* N number of items are removed from the array.
*/
class LruArrayCache implements CacheInterface
class LruArrayCache implements CacheInterface, \Countable
{
/** @var int */
private $maxItems;
/** @var array */
private $items;
private $items = array();
/**
* @param int $maxItems Maximum number of allowed cache items.
@@ -71,4 +71,9 @@ class LruArrayCache implements CacheInterface
{
unset($this->items[$key]);
}
public function count()
{
return count($this->items);
}
}