PATH:
home
/
thecwrif
/
public_html
/
wp-content
/
plugins
/
w3-total-cache
/
vendor
/
aws
/
aws-sdk-php
/
src
<?php namespace Aws; /** * Simple in-memory LRU cache that limits the number of cached entries. * * The LRU cache is implemented using PHP's ordered associative array. When * accessing an element, the element is removed from the hash and re-added to * ensure that recently used items are always at the end of the list while * least recently used are at the beginning. When a value is added to the * 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, \Countable { /** @var int */ private $maxItems; /** @var array */ private $items = array(); /** * @param int $maxItems Maximum number of allowed cache items. */ public function __construct($maxItems = 1000) { $this->maxItems = $maxItems; } public function get($key) { if (!isset($this->items[$key])) { return null; } $entry = $this->items[$key]; // Ensure the item is not expired. if (!$entry[1] || time() < $entry[1]) { // LRU: remove the item and push it to the end of the array. unset($this->items[$key]); $this->items[$key] = $entry; return $entry[0]; } unset($this->items[$key]); return null; } public function set($key, $value, $ttl = 0) { // Only call time() if the TTL is not 0/false/null $ttl = $ttl ? time() + $ttl : 0; $this->items[$key] = [$value, $ttl]; // Determine if there are more items in the cache than allowed. $diff = count($this->items) - $this->maxItems; // Clear out least recently used items. if ($diff > 0) { // Reset to the beginning of the array and begin unsetting. reset($this->items); for ($i = 0; $i < $diff; $i++) { unset($this->items[key($this->items)]); next($this->items); } } } public function remove($key) { unset($this->items[$key]); } public function count() { return count($this->items); } }
[+]
..
[+]
WorkMail
[+]
Rekognition
[+]
ConnectParticipant
[+]
IoTSiteWise
[+]
PersonalizeEvents
[+]
Redshift
[-] MonitoringEventsInterface.php
[edit]
[+]
ResourceGroups
[+]
ApplicationCostProfiler
[+]
DLM
[+]
LookoutMetrics
[+]
CodeStarconnections
[+]
IoTJobsDataPlane
[+]
KinesisVideoMedia
[+]
ElasticTranscoder
[+]
EndpointDiscovery
[+]
Mobile
[+]
RAM
[+]
TimestreamWrite
[+]
Athena
[+]
Backup
[+]
LakeFormation
[+]
AlexaForBusiness
[+]
Neptune
[+]
IoT1ClickDevicesService
[-] ConfigurationProviderInterface.php
[edit]
[+]
LicenseManager
[+]
DynamoDb
[+]
StorageGateway
[+]
ForecastQueryService
[+]
Credentials
[+]
Glue
[-] MultiRegionClient.php
[edit]
[+]
Chime
[+]
data
[+]
DeviceFarm
[-] HasDataTrait.php
[edit]
[+]
HealthLake
[+]
Comprehend
[+]
mgn
[+]
CloudFront
[+]
ResourceGroupsTaggingAPI
[+]
Iot
[+]
signer
[+]
MarketplaceCatalog
[+]
CodeDeploy
[+]
EBS
[+]
SSMIncidents
[+]
DevOpsGuru
[+]
AutoScaling
[+]
AppRunner
[-] MockHandler.php
[edit]
[+]
AppMesh
[+]
RedshiftDataAPIService
[+]
CloudHsm
[+]
MediaStore
[+]
DirectoryService
[+]
LexModelsV2
[-] HashingStream.php
[edit]
[+]
Arn
[+]
DirectConnect
[+]
Ecr
[+]
MediaLive
[-] Result.php
[edit]
[-] AwsClientTrait.php
[edit]
[+]
PinpointSMSVoice
[+]
GameLift
[+]
CodeStarNotifications
[+]
SSOOIDC
[+]
MQ
[+]
Schemas
[+]
Health
[+]
DatabaseMigrationService
[+]
Detective
[-] ClientResolver.php
[edit]
[+]
Signature
[+]
Swf
[+]
Honeycode
[+]
Macie2
[+]
GuardDuty
[-] WrappedHttpHandler.php
[edit]
[+]
ServiceCatalog
[-] LruArrayCache.php
[edit]
[+]
ApplicationAutoScaling
[+]
LookoutEquipment
[+]
MediaConnect
[+]
KinesisAnalyticsV2
[+]
SSOAdmin
[+]
LocationService
[+]
IoTEventsData
[+]
KinesisAnalytics
[+]
ManagedBlockchain
[+]
SSO
[+]
WAFV2
[+]
Pricing
[-] functions.php
[edit]
[+]
SagemakerEdgeManager
[+]
DataPipeline
[-] CommandInterface.php
[edit]
[+]
PersonalizeRuntime
[+]
Route53
[+]
CloudDirectory
[-] Command.php
[edit]
[-] PsrCacheAdapter.php
[edit]
[+]
AppRegistry
[+]
RDSDataService
[-] RetryMiddlewareV2.php
[edit]
[+]
LookoutforVision
[+]
GlueDataBrew
[+]
Appstream
[+]
CostandUsageReportService
[+]
EventBridge
[+]
NetworkFirewall
[+]
CloudTrail
[+]
SageMaker
[+]
DynamoDbStreams
[+]
ElasticLoadBalancingV2
[+]
Waf
[+]
CodeGuruProfiler
[-] EndpointParameterMiddleware.php
[edit]
[+]
CloudWatchEvents
[+]
Transfer
[+]
CodeGuruReviewer
[+]
SnowBall
[+]
CognitoIdentityProvider
[+]
ECRPublic
[+]
MediaConvert
[+]
PI
[+]
KinesisVideo
[+]
CloudSearch
[+]
CloudWatchLogs
[-] JsonCompiler.php
[edit]
[+]
MigrationHubConfig
[+]
MediaPackage
[-] ResultInterface.php
[edit]
[+]
CloudSearchDomain
[+]
IoTThingsGraph
[+]
Emr
[+]
ComputeOptimizer
[+]
PinpointEmail
[+]
ClientSideMonitoring
[+]
MigrationHub
[+]
WafRegional
[+]
IdentityStore
[+]
IoT1ClickProjects
[+]
ServiceDiscovery
[+]
FinSpaceData
[+]
IoTDeviceAdvisor
[+]
CodeCommit
[+]
AutoScalingPlans
[+]
IotDataPlane
[+]
CostExplorer
[+]
Efs
[+]
CodeArtifact
[+]
FSx
[-] Middleware.php
[edit]
[+]
GroundStation
[+]
Firehose
[+]
Cloud9
[+]
Sts
[+]
ConnectContactLens
[+]
GreengrassV2
[+]
Acm
[+]
Kafka
[+]
MarketplaceMetering
[+]
ApplicationInsights
[+]
MarketplaceCommerceAnalytics
[+]
MachineLearning
[+]
Multipart
[+]
Personalize
[+]
Support
[+]
ApiGatewayV2
[-] AwsClient.php
[edit]
[+]
IVS
[+]
ElasticInference
[+]
DataExchange
[+]
S3Outposts
[+]
ACMPCA
[+]
GlobalAccelerator
[+]
Translate
[+]
AccessAnalyzer
[+]
Ecs
[+]
QuickSight
[+]
Sfn
[+]
CustomerProfiles
[+]
WorkSpaces
[+]
ImportExport
[+]
PrometheusService
[+]
MTurk
[-] ResultPaginator.php
[edit]
[+]
SecurityHub
[+]
CodePipeline
[+]
MediaPackageVod
[+]
LexRuntimeV2
[+]
Ssm
[+]
Organizations
[-] PresignUrlMiddleware.php
[edit]
[+]
AppIntegrationsService
[+]
Braket
[+]
ServerlessApplicationRepository
[+]
Retry
[+]
Rds
[-] HasMonitoringEventsTrait.php
[edit]
[+]
WorkDocs
[-] InputValidationMiddleware.php
[edit]
[+]
DAX
[+]
IoTSecureTunneling
[+]
Outposts
[+]
Handler
[+]
imagebuilder
[-] AbstractConfigurationProvider.php
[edit]
[+]
Sns
[+]
Pinpoint
[+]
ComprehendMedical
[+]
MediaTailor
[+]
Ec2
[+]
ElasticBeanstalk
[+]
Textract
[+]
Lightsail
[+]
CognitoSync
[+]
FraudDetector
[+]
IoTFleetHub
[+]
CodeStar
[+]
SageMakerFeatureStoreRuntime
[+]
EMRContainers
[-] TraceMiddleware.php
[edit]
[+]
SageMakerRuntime
[+]
Sms
[+]
AugmentedAIRuntime
[+]
FIS
[+]
FMS
[+]
TimestreamQuery
[-] StreamRequestPayloadMiddleware.php
[edit]
[+]
Shield
[+]
Amplify
[+]
S3
[+]
ApplicationDiscoveryService
[+]
Lambda
[-] AwsClientInterface.php
[edit]
[-] HandlerList.php
[edit]
[+]
Exception
[-] CacheInterface.php
[edit]
[+]
SavingsPlans
[+]
ElasticLoadBalancing
[+]
ElasticsearchService
[+]
AmplifyBackend
[+]
Glacier
[+]
Polly
[-] Waiter.php
[edit]
[+]
CognitoIdentity
[+]
TranscribeService
[+]
ForecastService
[-] HashInterface.php
[edit]
[+]
WellArchitected
[+]
Api
[-] ResponseContainerInterface.php
[edit]
[+]
AppConfig
[+]
Sqs
[+]
SecretsManager
[+]
QLDB
[+]
Batch
[+]
Endpoint
[+]
Macie
[+]
Kms
[-] RetryMiddleware.php
[edit]
[+]
S3Control
[+]
AppSync
[+]
ApiGatewayManagementApi
[-] DoctrineCacheAdapter.php
[edit]
[+]
kendra
[+]
EC2InstanceConnect
[+]
Budgets
[+]
CodeBuild
[-] IdempotencyTokenMiddleware.php
[edit]
[+]
WorkMailMessageFlow
[-] CommandPool.php
[edit]
[+]
MediaStoreData
[+]
IoTEvents
[+]
Greengrass
[+]
QLDBSession
[+]
CloudFormation
[+]
KinesisVideoSignalingChannels
[+]
MWAA
[-] Psr16CacheAdapter.php
[edit]
[+]
DocDB
[+]
Crypto
[+]
ConfigService
[+]
EKS
[+]
ServiceQuotas
[+]
XRay
[+]
KinesisVideoArchivedMedia
[+]
SSMContacts
[+]
RoboMaker
[+]
IoTWireless
[+]
MarketplaceEntitlementService
[+]
OpsWorksCM
[+]
Iam
[+]
ElastiCache
[+]
WorkLink
[+]
DataSync
[+]
AuditManager
[+]
Synthetics
[+]
Ses
[+]
Route53Resolver
[+]
Connect
[+]
Route53Domains
[+]
LexRuntimeService
[+]
OpsWorks
[+]
IoTAnalytics
[-] Sdk.php
[edit]
[-] PhpHash.php
[edit]
[+]
finspace
[+]
Appflow
[+]
NimbleStudio
[+]
CloudWatch
[+]
SesV2
[-] History.php
[edit]
[+]
LexModelBuildingService
[+]
NetworkManager
[+]
Inspector
[+]
ApiGateway
[+]
Kinesis
[+]
CloudHSMV2