biigle/laravel-cached-openstack 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

biigle/laravel-cached-openstack

最新稳定版本:v1.6.0

Composer 安装命令:

composer require biigle/laravel-cached-openstack

包简介

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

README 文档

README

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.

统计信息

  • 总下载量: 60.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-17