Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delano/uri-redis
URI support for Redis connection settings
https://github.com/delano/uri-redis
dev redis ruby
Last synced: 2 months ago
JSON representation
URI support for Redis connection settings
- Host: GitHub
- URL: https://github.com/delano/uri-redis
- Owner: delano
- License: mit
- Created: 2010-05-31T00:16:57.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2024-06-15T19:25:52.000Z (7 months ago)
- Last Synced: 2024-10-31T12:56:38.440Z (2 months ago)
- Topics: dev, redis, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/uri-redis
- Size: 56.6 KB
- Stars: 3
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
# URI-Redis v1.3 (2024-06-15)
Creates a URI object for Redis URLs.
e.g.
redis://host:port/dbindex
## Usage
```ruby
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.
```ruby
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 [email protected]:delano/uri-redis.git`## About
* [Github](https://github.com/delano/uri-redis)
## License
See LICENSE.txt