test/dummy/app/cachers/user_cacher.rb in cachers-4.0.0.0 vs test/dummy/app/cachers/user_cacher.rb in cachers-4.1.0.0
- old
+ new
@@ -1,12 +1,12 @@
class UserCacher < Cachers::Base
def cache
- $redis.set key, record.id
+ set key, record.id
end
def uncache
- $redis.del key
+ del key
end
private
def key