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

This comment has been minimized.

Copy link

@Oshuma Oshuma commented Jul 8, 2010

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

@selvakn

This comment has been minimized.

Copy link

@selvakn selvakn commented Jul 13, 2010

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