Created
September 25, 2008 03:52
-
-
Save ab5tract/12746 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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