
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
= redisk
An interface to Redis that mimic's Ruby's IO classes
== WHAT
Redis (http://code.google.com/p/redis/) is a super awesome persisted key-value store.
Why are we still logging to files then?
Redisk is a set of Ruby classes that mimic's Ruby's built in IO classes to allow drop in replacement for logging and other fun things.
== USAGE
Currently, Redisk provides two main classes Redisk::IO and Redisk::Logger.
Redisk::IO implements most of the methods of Ruby's IO class (http://ruby-doc.org/core/classes/IO.html)
require 'redisk'
io = Redisk::IO.new('mylog.log') # not a file, a Redis List
io.puts "Log this!"
io.gets #=> "Log this!"
io.gets #=> nil
io.lineno = 2
Its much more interesting to use it with logger.
logger = Logger.new(Redisk::IO.new('test.log))
logger.info("Hahah, I'm logging to redis")
logger.warn("whu?")
logger.error("zuh")
Theres also a nifty wrapper for that behavior:
logger = Redisk::Logger.new('test.log')
logger.info "10 less characters!"
By default, Redisk uses the Redis on localhost:6379, but you can change that by setting
Redisk.redis = 'myhost:myport'
Check out the small but growing list of examples in examples/
== INSTALL (NOW!)
Proudly tested and working on Ruby 1.8.6, 1.8.7, and 1.9.1
Gems are on gemcutter:
gem install redisk
Dependencies:
redis running somewhere
gems:
redis
redis-namespace
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2009 Aaron Quint. See LICENSE for details.
FAQs
Unknown package
We found that redisk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.