module Cachext::Features::Backup

Public Instance Methods

handle_error(key, options, error) click to toggle source
Calls superclass method
# File lib/cachext/features/backup.rb, line 9
def handle_error key, options, error
  super
  key.read_backup
end
handle_not_found(key, options, error) click to toggle source
Calls superclass method
# File lib/cachext/features/backup.rb, line 4
def handle_not_found key, options, error
  key.delete_backup
  super
end
write(key, fresh, options) click to toggle source
Calls superclass method
# File lib/cachext/features/backup.rb, line 14
def write key, fresh, options
  super
  key.write_backup fresh
end