定制 patrickrose/flysystem-redis 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

patrickrose/flysystem-redis

最新稳定版本:1.1.4

Composer 安装命令:

composer require patrickrose/flysystem-redis

包简介

A Flysystem adapter for Redis

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

A flysystem adapter for Redis

Installation

With composer of course:

"require": {
    "patrickrose/flysystem-redis": "~1"
}

Usage

$client = new Predis\Client();
$adapter = new PatrickRose\Flysystem\Redis\RedisAdapter($client);

$filesystem = new League\Flysystem\Filesystem($adapter);

Config options

update, updateStream, write, writeStream accept 3 config options:

Config option Description Valid values
expirationType The expiration resolution to use (either EX or PX). Defaults to null RedisAdapter::EXPIRE_IN_SECONDS, RedisAdapter::EXPIRE_IN_MILLISECONDS
ttl How long this key should live for. Defaults to forever. If set, expirationType is set to EX Any integer
setFlag How the key should be set (NX or XX) RedisAdapter::SET_IF_KEY_EXISTS, RedisAdapter::SET_IF_KEY_NOT_EXISTS

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-09