Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 754 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 754 Bytes

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.