LaravelPackages.net
Acme Inc.
Toggle sidebar
biigle/laravel-cached-openstack

A wrapper for the OpenStack SDK that caches and renews the authentication token

62.216
3
v1.6.0
About biigle/laravel-cached-openstack

biigle/laravel-cached-openstack is a Laravel package for a wrapper for the openstack sdk that caches and renews the authentication token. It currently has 3 GitHub stars and 62.216 downloads on Packagist (latest version v1.6.0). Install it with composer require biigle/laravel-cached-openstack. Discover more Laravel packages by biigle or browse all Laravel packages to compare alternatives.

Last updated

Cached OpenStack

A wrapper for the OpenStack SDK that caches and renews the authentication token. Works with Laravel and Lumen.

The wrapper is specifically intended for use in long running daemon queue workers as it renews the cached authentication token automatically.

Installation

composer require biigle/laravel-cached-openstack

Usage

use Biigle\CachedOpenStack\OpenStack;

$cache = app('cache');
$options = [
   // OpenStack options...
];

$openstack = new OpenStack($cache, $options);

Options

You can include cache options in the OpenStack options array. Example:

$options = [
   'cacheOptions' => [
      'ttl' => 3600,
   ],
];

$openstack = new OpenStack($cache, $options);

Available options:

  • ttl: Overrides the duration that the authentication token should be cached in seconds. If not set, the token is cached until its expires_at minus 60 seconds. If expires_at is less than the specified ttl, ttl is ignored.

Star History Chart