Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
github config
module GitHub
module Config
def self.[](key)
$redis.get("gh:cfg:#{key}")
end
def self.[]=(key, value)
$redis.set("gh:cfg:#{key}", value)
end
end
end
@Oshuma
Copy link

Oshuma commented Jul 8, 2010

Nice. I did something similar with SQLite3 last year. http://github.com/Oshuma/app_config

@selvakn
Copy link

selvakn commented Jul 13, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment