Project

uri-redis

0.01
A long-lived project that still receives updates
URI-Redis: support for parsing Redis URIs like redis://host:port/dbindex/key
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

URI-Redis v1.3 (2024-06-15)

Creates a URI object for Redis URLs.

e.g.

redis://host:port/dbindex

Usage

    require 'uri/redis'

    conf = URI.parse 'redis://localhost:4380/2'
    conf.scheme               # => "redis"
    conf.host                 # => localhost
    conf.port                 # => 4380
    conf.db                   # => 2
    conf.to_s                 # => redis://localhost:4380/2

SSL Support

SSL is supported by using the rediss scheme. Note: SSL support is only available in Redis (Server) 6.0 and later and via redis-rb 4.7 and later.

    require 'uri/redis'

    conf = URI.parse 'rediss://localhost:4380/2'
    conf.scheme               # => "rediss"
    conf.to_s                 # => rediss://localhost:4380/2

Installation

Get it in one of the following ways:

  • gem install uri-redis
  • git clone git@github.com:delano/uri-redis.git

About

License

See LICENSE.txt