The Momento PSR-16 client library, Psr16SimpleCache
, implements the PHP PSR-16 common interface for caching
libraries for the Momento Serverless Cache. Note that the client library
is under development and may be subject to backward-incompatible changes.
- A Momento API key is required, you can generate one using the Momento console.
- At least PHP 8.0
- The grpc PHP extension. See the gRPC docs section on installing the extension.
- The protobuf C extension. See the protobuf C extension docs for installation instructions.
IDE Notes: You'll most likely want to use an IDE that supports PHP development, such as PhpStorm or Microsoft Visual Studio Code.
Check out the full PSR-16 library example in the examples directory of this repository!
- Please note that this library is under active development and may be subject to backward-incompatible changes.
- The
clear()
function defined in the PSR-16 specification is currently unimplemented in this client library and throws aMomento\Cache\Errors\NotImplementedException
if called. It is coming soon, though, so stay tuned! - The
getMultiple()
,setMultiple()
, anddeleteMultiple()
functionality is currently implemented client-side and may exhibit slower performance than expected. These methods will be replaced with calls to server-side implementations in the near future.