Skip to content

VitorVRS/php-redis-stream-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

php-redis-stream-wrapper

PHP Stream Wrapper to use Redis as a File System.

This project aren't in production yet.

Allows you to use PHP native functions (file_put_contents, file_get_contents, fopen, fwrite, etc) on Redis context.

This project can be usefull if you are using Redis as "File System"

Redis Example:

    SET /path/to/file "content"
    GET /path/to/file

PHP Example:

    file_put_contents('redis:///path/to/file', 'content');
    $fileContent = file_get_contents('redis:///path/to/file');

This code is using 127.0.0.1:6379 as string connection for Redis

Using

    \VRS\Redis\Factory::getInstance()->capture();    

After this, you can use the PHP Example above for testing.

About

PHP Stream Wrapper to use Redis as a File System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages