Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created September 25, 2008 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ab5tract/12746 to your computer and use it in GitHub Desktop.
Save ab5tract/12746 to your computer and use it in GitHub Desktop.
module Waves
module Cache
module Memcached
module Extensions
def method_missing(*args, &block)
@cache.__send__(*args, &block)
rescue => e
Waves::Logger.error e.to_s
nil
end
end
end
end
end
module Waves
module Cache
module Memcached
require 'memcached' and Waves.config.dependencies << 'memcached'
# Only un-comment if you understand the implications.
# require 'memcached-ext'
# include Waves::Cache::Memcached::Extensions
def initialize(args)
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment