momentohq / client-sdk-php

Official PHP SDK for Momento Serverless Cache
Apache License 2.0
12 stars 5 forks source link

feat: Improve PSR cache multiple operation performance #165

Closed pgautier404 closed 1 year ago

pgautier404 commented 1 year ago

This PR continues #162:

"I have adjusted these methods to perform up to 100 operations concurrently against the cache, and where there are more than 100 operations to do, it performs the first 100, then the next 100, etc. This also fixes a bug where it is attempted to iterate the keys more than once. An iterable in PHP need not implement the ability to rewind, so we must only iterate once."