lib/suo/client/memcached.rb in suo-0.1.3 vs lib/suo/client/memcached.rb in suo-0.2.0

- old
+ new

@@ -4,28 +4,25 @@ def initialize(options = {}) options[:client] ||= Dalli::Client.new(options[:connection] || ENV["MEMCACHE_SERVERS"] || "127.0.0.1:11211") super end - class << self - def clear(key, options = {}) - options = merge_defaults(options) - options[:client].delete(key) - end + def clear(key) + @client.delete(key) + end - private + private - def get(key, options) - options[:client].get_cas(key) - end + def get(key) + @client.get_cas(key) + end - def set(key, newval, cas, options) - options[:client].set_cas(key, newval, cas) - end + def set(key, newval, cas) + @client.set_cas(key, newval, cas) + end - def set_initial(key, options) - options[:client].set(key, "") - end + def set_initial(key) + @client.set(key, "") end end end end