module Eternity

Constants

DELETE
INSERT
TIME_FORMAT
UPDATE
VERSION

Public Class Methods

clear_file_system() click to toggle source
# File lib/eternity.rb, line 43
def self.clear_file_system
  FileUtils.rm_rf blob_path if Dir.exist? blob_path
end
clear_redis() click to toggle source
# File lib/eternity.rb, line 37
def self.clear_redis
  redis_keys.each do |key|
    connection.call 'DEL', key
  end
end
locker_for(repository_name) click to toggle source
# File lib/eternity.rb, line 28
def self.locker_for(repository_name)
  Restruct::Locker.new  connection: connection,
                        id: keyspace[:locker][:repository][repository_name]
end
redis_keys() click to toggle source
# File lib/eternity.rb, line 33
def self.redis_keys
  connection.call 'KEYS', keyspace['*']
end