Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Shrine::Storage::Redis

Provides a Shrine Storage for storing files in Redis.

Installation

gem "shrine-redis"

Usage

# This example assumes a redis-server instance is running in the background

require "redis"
require "shrine"
require "shrine/storage/redis"

redis = Redis.new

cache = { client: redis, prefix: "cache", expire: 60 }
store = { client: redis, prefix: "store", expire: 3600 }

Shrine.storages = {
  cache: Shrine::Storage::Redis.new(cache),
  store: Shrine::Storage::Redis.new(store)
}

Contributing

You can run the tests with Rake:

$ bundle exec rake test

License

MIT

About

Shrine storage interface for storing files in Redis.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.