From 941bcff743b6a1cef1dbe5842d88ae8a85012f86 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 28 Feb 2017 02:06:41 -0600 Subject: [PATCH] cache.rb: remove unused incr, decr methods. --- app/logical/cache.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/logical/cache.rb b/app/logical/cache.rb index 78eafc2d8..4c681e655 100644 --- a/app/logical/cache.rb +++ b/app/logical/cache.rb @@ -1,14 +1,4 @@ class Cache - def self.incr(key) - MEMCACHE.incr(key) - ActiveRecord::Base.logger.debug('MemCache Incr %s' % [key]) - end - - def self.decr(key) - MEMCACHE.decr(key) - ActiveRecord::Base.logger.debug('MemCache Decr %s' % [key]) - end - def self.get_multi(keys, prefix, expiry_in_seconds = nil) key_to_sanitized_key_hash = keys.inject({}) do |hash, x| hash[x] = "#{prefix}:#{Cache.sanitize(x)}"