Skip to content

Mount a Redis database as a filesystem using fuse.

License

Notifications You must be signed in to change notification settings

LexVocoder/redis-fs

 
 

Repository files navigation

redis-fs

redis-fs lets you mount a Redis database as a filesystem. It is based on redis-mount by Po-Ying Chen which was deleted from Github for unknown reasons.

Build Status

Help

Please star this repository if you're using redis-fs so that I know it's worth to continue working on it.

Please report any Issue you may encounter using redis-fs.

Pull requests are welcome.

Usage

redis-fs 0.2.0
$ redis-fs ~/redis

--host, -h   localhost    Redis host name
--port, -p   6379         Redis port number
--auth, -a                Redis password
--sep, -s    :            Redis key separator

What we can do with it?

  1. Create a fast, auto-expanding RAM disk for (i. e.) working with temporary files.
  2. Use grep to search for text in redis values.
  3. Pass data to other programs. ex: $ cat redis-key | pretty-print

screenshot

Installation

Download binary file

Build from source

It is easy to build redis-fs from the source code. It takes four steps:

  1. Install fuse (linux, mac). Redis-fs currently works with OS X FUSE 2.8.x but not the 3.x developer preview.
  2. Get the redis-fs source code from GitHub
$ git clone https://github.com/MatthiasWinkelmann/redis-fs.git
  1. Change to the directory with the redis-fs source code and run
$ make get-deps

to install dependencies.

  1. Run make build and then you can see a binary file in current directory.

Run Unit Tests

$ make test

Unmount

Linux

$ fusermount -u /tmp/redis

MacOS

$ diskutil unmount /tmp/redis

License

(The MIT License)

About

Mount a Redis database as a filesystem using fuse.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 93.8%
  • Makefile 4.3%
  • Dockerfile 1.9%