Download the PHP package momentohq/laravel-cache without Composer
On this page you can find all versions of the php package momentohq/laravel-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download momentohq/laravel-cache
More information about momentohq/laravel-cache
Files in momentohq/laravel-cache
Package laravel-cache
Short Description Taggable Momento cache driver for Laravel.
License Apache-2.0
Homepage https://github.com/momentohq/laravel-cache
Informations about the package laravel-cache
Getting Started :running:
Requirements
- A Momento API Key is required, you can generate one using the Momento Console
- A Momento cache is required, you can generate one using the Momento Console
- At least PHP 8.0
- Composer
- At least Laravel 9.x
- The grpc PHP extension. See the gRPC docs section on installing the extension.
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 full working code in the example app!
Installation
Add our SDK as a dependency to your Laravel installation's composer.json
file:
Run composer update
to install the necessary prerequisites.
Then, add MomentoServiceProvider
to your config/app.php
:
And add:
MOMENTO_API_KEY
=MOMENTO_CACHE_NAME
=
into your .env
file
Finally, add the required config to your config/cache.php
:
Run composer update
to install the necessary prerequisites.
Usage
Check out full working code in the example app!
Tuning
Coming soon!
Tag Support
Cache tags work the same way as explained in the Laravel documentation.
Notes: If a tag may contain more than 4MB worth of keys, tagging may not work as intended. Please contact us at [email protected] or on our Discord if you need support for a larger tag set.
Unsupported Cache Operations
The following cache operations are not supported today. If you need these operations, please reach out to us, and we can prioritize the work to complete them. You can file a GitHub issue, e-mail us at [email protected], or join our Discord.
forever
For more info, visit our website at https://gomomento.com!