Laravel version update
Laravel version update
This commit is contained in:
		
							
								
								
									
										9
									
								
								vendor/aws/aws-sdk-php/src/LruArrayCache.php
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/aws/aws-sdk-php/src/LruArrayCache.php
									
									
									
									
										vendored
									
									
								
							| @@ -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); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Manish Verma
					Manish Verma