2017 © Pedro Peláez
 

library flysystem-redis

A Flysystem adapter for storing files in Redis

image

danhunsaker/flysystem-redis

A Flysystem adapter for storing files in Redis

  • Wednesday, May 18, 2016
  • by danhunsaker
  • Repository
  • 4 Watchers
  • 12 Stars
  • 34,696 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 2 Forks
  • 1 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

Flysystem Adapter for Redis

Join the chat at https://gitter.im/danhunsaker/flysystem-redis Liberapay receiving, (*1)

Latest Version Software License Build Status Total Downloads, (*2)

This is a Redis adapter for Flysystem., (*3)

Installation

Composer is the best way, as with all of Flysystem!, (*4)

composer require danhunsaker/flysystem-redis

Usage

The usual. Create a client instance, pass it to the adapter, and pass that to the filesystem:, (*5)

use Predis\Client;
use League\Flysystem\Filesystem;
use Danhunsaker\Flysystem\Redis\RedisAdapter;

$redis = new Client();
$adapter = new RedisAdapter($redis);
$filesystem = new Filesystem($adapter);

If Predis's assumed defaults of 127.0.0.1 and 6379 for host and port (respectively) aren't sufficient, you can pass your own values, just as you normally would when setting up Predis elsewhere in your projects:, (*6)

use Predis\Client;
use League\Flysystem\Filesystem;
use Danhunsaker\Flysystem\Redis\RedisAdapter;

$redis = new Client([
    'scheme' => 'tcp',
    'host'   => '10.0.0.1',
    'port'   => 6379,
]);
$adapter = new RedisAdapter($redis);
$filesystem = new Filesystem($adapter);

See the Predis docs for more on how to set it up..., (*7)

And head to GitHub for everything else., (*8)

The Versions

18/05 2016

dev-master

9999999-dev

A Flysystem adapter for storing files in Redis

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hunsaker

26/10 2015

v1.0.3

1.0.3.0

A Flysystem adapter for storing files in Redis

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hunsaker

25/10 2015

v1.0.2

1.0.2.0

A Flysystem adapter for storing files in Redis

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hunsaker

25/10 2015

v1.0.1

1.0.1.0

A Flysystem adapter for storing files in Redis

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hunsaker

25/10 2015

v1.0.0

1.0.0.0

A Flysystem adapter for storing files in Redis

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Hunsaker