2017 © Pedro Pelรกez
 

library laravel-aerospike

Aerospike cache driver for Laravel

image

makbulut/laravel-aerospike

Aerospike cache driver for Laravel

  • Thursday, July 5, 2018
  • by makbulut
  • Repository
  • 1 Watchers
  • 6 Stars
  • 734 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 158 % Grown

The README.md

Laravel Aerospike Cache Driver

Aerospike Cache driver for Laravel 5. This package makes it easy to store cached data in Aerospike., (*1)

๐Ÿ“ฆ Installation

Make sure you have the Aerospike PHP client installed. You can find installation instructions at http://www.aerospike.com/docs/client/php/install, (*2)

To install this package you will need:, (*3)

  • Laravel 5.0+
  • PHP 5.5.9+

You must then modify your composer.json file and run composer update to include the latest version of the package in your project., (*4)

"require": {
    "makbulut/laravel-aerospike": "1.3"
}

Or you can run the composer require command from your terminal., (*5)

composer require makbulut/laravel-aerospike:1.3

๐Ÿ”ง Configuration

Provider

Setup service provider in config/app.php, (*6)

Makbulut\Aerospike\AerospikeServiceProvider::class

Environment

Change the cache driver in .env to aerospike:, (*7)

CACHE_DRIVER=aerospike

Add aerospike server informations to .env file., (*8)

AEROSPIKE_HOST=172.28.128.3
AEROSPIKE_PORT=3000
AEROSPIKE_NAMESPACE=test

๐Ÿ“Œ Usage

Cache::store('aerospike')->get('key_1');
Cache::store('aerospike')->put('key_1', 1, 5 );
Cache::store('aerospike')->increment('rest_1', 1);
Cache::store('aerospike')->decrement('rest_1', 1);
Cache::store('aerospike')->forever('key_1', 1);
Cache::store('aerospike')->forget('key_1');
Cache::store('aerospike')->flush('test');

Or, (*9)

Cache::get('key_1');
Cache::put('key_1', 1, 5 );
Cache::increment('rest_1', 1);
Cache::decrement('rest_1', 1);
Cache::forever('key_1', 1);
Cache::forget('key_1');
Cache::flush('test');

For more information about Caches, check http://laravel.com/docs/cache., (*10)

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT license, (*11)

The Versions

05/07 2018

dev-master

9999999-dev

Aerospike cache driver for Laravel

  Sources   Download

MIT

The Requires

 

by Mehmet Akbulut

laravel cache aerospike

05/07 2018

v1.3

1.3.0.0

Aerospike cache driver for Laravel

  Sources   Download

MIT

The Requires

 

by Mehmet Akbulut

laravel cache aerospike

27/02 2018

v1.2

1.2.0.0

Aerospike cache driver for Laravel

  Sources   Download

MIT

The Requires

 

by Mehmet Akbulut

laravel cache aerospike

24/02 2018

v1.1

1.1.0.0

Aerospike cache driver for Laravel

  Sources   Download

MIT

The Requires

 

by Mehmet Akbulut

laravel cache aerospike

30/04 2017

v1.0

1.0.0.0

Aerospike cache driver for Laravel

  Sources   Download

MIT

The Requires

 

by Mehmet Akbulut

laravel cache aerospike