luciano-jr / laravel-aerospike
Service to use Aerospike Cache in Laravel 5
Installs: 2 585
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 4
Open Issues: 0
Requires
- php: >=5.6.0
- illuminate/config: ~5.0
- illuminate/console: ~5.0
- illuminate/http: ~5.0
- illuminate/session: ~5.0
- illuminate/support: ~5.0
Requires (Dev)
- phpunit/phpunit: ^5.5
This package is not auto-updated.
Last update: 2024-10-30 20:05:27 UTC
README
A service to use Aerospike Cache on Laravel 5
Installation
1. Dependency
Using composer, execute the following command to automatically update your composer.json
:
composer require luciano-jr/laravel-aerospike
or manually update your composer.json
file
{ "require": { "luciano-jr/laravel-aerospike": "dev-master" } }
2. Provider
You need to update your application configuration in order to register the package, so it can be loaded by Laravel. Just update your config/app.php
file adding the following code at the end of your 'providers'
section:
// file START ommited 'providers' => [ // other providers ommited Lucianojr\Aerospike\Providers\AerospikeServiceProvider::class, ], // file END ommited
2.1 Publishing configuration file
To publish the default configuration file, execute the following command:
php artisan vendor:publish
You can also publish only the configuration file:
php artisan vendor:publish --tag=config
If you already published aerospike files, but for some reason you want to override previous published files, add the --force
flag.
3. Facade (optional)
In order to use the AerospikeCache
facade, you need to register it on the config/app.php
file, you can do that the following way:
// config.php file // file START ommited 'aliases' => [ // other Facades ommited 'AerospikeCache' => Lucianojr\Aerospike\Facades\AerospikeFacade::class, ], // file END ommited