Skip to content
Browse files

The memcached gem provides its own Memcached::Rails

  • Loading branch information...
1 parent 9dc19a3 commit 00b131d77188629d66789dbd86c3eb25b20f2a57 @defunkt committed Aug 28, 2009
Showing with 0 additions and 18 deletions.
  1. +0 −1 lib/acts_as_cached.rb
  2. +0 −17 lib/acts_as_cached/memcached_rails.rb
View
1 lib/acts_as_cached.rb
@@ -4,7 +4,6 @@
require 'acts_as_cached/benchmarking'
require 'acts_as_cached/disabled'
require 'acts_as_cached/local_cache'
-require 'acts_as_cached/memcached_rails'
module ActsAsCached
@@config = {}
View
17 lib/acts_as_cached/memcached_rails.rb
@@ -1,17 +0,0 @@
-class Memcached
- # A legacy compatibility wrapper for the Memcached class. It has basic compatibility with the <b>memcache-client</b> API.
- class Rails < ::Memcached
- def initialize(config)
- super(config.delete(:servers), config.slice(DEFAULTS.keys))
- end
-
- def servers=(servers)
-
- end
-
- def delete(key, expiry = 0)
- super(key)
- rescue NotFound
- end
- end
-end

0 comments on commit 00b131d

Please sign in to comment.
Something went wrong with that request. Please try again.