Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.89 KB

README-PSR16.md

File metadata and controls

31 lines (22 loc) · 1.89 KB

Momento PSR-16 Client Library

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.

Getting Started 🏃

Requirements

  • 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.

Examples

Check out the full PSR-16 library example in the examples directory of this repository!

Implementation Notes

  • 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 a Momento\Cache\Errors\NotImplementedException if called. It is coming soon, though, so stay tuned!
  • The getMultiple(), setMultiple(), and deleteMultiple() 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.