Skip to content

akerl-archived/redisstore

Repository files navigation

redisstore

Gem Version Build Status Coverage Status Code Quality MIT Licensed

Redis storage backend for BasicCache

Usage

require 'basiccache'
require 'redisstore'

store = RedisStore.new(host: '1.2.3.4', port: 1234)
cache = BasicCache.new store

Your options when creating the store are passed off to redis-rb, so you can provide whichever other options you'd like, such as specifying a unix socket or authentication details. Similarly, if your Redis instance is on localhost:6379, you don't need to specify anything.

Installation

gem install redisstore

License

redisstore is released under the MIT License. See the bundled LICENSE file for details.