diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/.gitignore | 1 | ||||
-rw-r--r-- | config/environment.rb | 2 | ||||
-rw-r--r-- | config/memcached.yml-example | 11 | ||||
-rw-r--r-- | config/packages | 1 |
4 files changed, 15 insertions, 0 deletions
diff --git a/config/.gitignore b/config/.gitignore index 692c353a4..f83b0d97d 100644 --- a/config/.gitignore +++ b/config/.gitignore @@ -3,3 +3,4 @@ /database.yml /database.yml.deployed /rails_env.rb +/memcached.yml diff --git a/config/environment.rb b/config/environment.rb index b0effaabd..e99e43e7a 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -20,6 +20,8 @@ $:.push(File.join(File.dirname(__FILE__), '../commonlib/rblib')) $:.unshift(File.join(File.dirname(__FILE__), '../vendor/ruby-ole/lib')) $:.unshift(File.join(File.dirname(__FILE__), '../vendor/ruby-msg/lib')) +require 'memcache' + load "validate.rb" load "config.rb" load "format.rb" diff --git a/config/memcached.yml-example b/config/memcached.yml-example new file mode 100644 index 000000000..fe89b71fc --- /dev/null +++ b/config/memcached.yml-example @@ -0,0 +1,11 @@ +defaults: + namespace: whatdotheyknow + sessions: false + client: memcache-client +development: + servers: + - 127.0.0.1:11211 # Default host and port +production: + servers: + - 127.0.0.1:11211 # Default host and port + diff --git a/config/packages b/config/packages index 5a45a1446..546d5df15 100644 --- a/config/packages +++ b/config/packages @@ -30,3 +30,4 @@ libxml-simple-ruby libfcgi-ruby1.8 vpim tnef (>= 1.4.5) +libmemcache-client-ruby |