Skip to content

Instantly share code, notes, and snippets.

@technoweenie
Created July 8, 2010 01:04
Show Gist options
  • Star 37 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save technoweenie/4de7b3c1522b155008e1 to your computer and use it in GitHub Desktop.
Save technoweenie/4de7b3c1522b155008e1 to your computer and use it in GitHub Desktop.
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