Module: Eternity
- Extended by:
- ClassConfig
- Defined in:
- lib/eternity.rb,
lib/eternity/blob.rb,
lib/eternity/delta.rb,
lib/eternity/index.rb,
lib/eternity/patch.rb,
lib/eternity/branch.rb,
lib/eternity/commit.rb,
lib/eternity/tracker.rb,
lib/eternity/version.rb,
lib/eternity/repository.rb,
lib/eternity/track_flatter.rb,
lib/eternity/object_tracker.rb,
lib/eternity/collection_index.rb,
lib/eternity/conflict_resolver.rb,
lib/eternity/collection_tracker.rb
Defined Under Namespace
Modules: Patch
Classes: Blob, Branch, CollectionIndex, CollectionTracker, Commit, ConflictResolver, Delta, Index, ObjectTracker, Repository, TrackFlatter, Tracker
Constant Summary
collapse
- INSERT =
'insert'.freeze
- UPDATE =
'update'.freeze
- DELETE =
'delete'.freeze
- TIME_FORMAT =
'%Y-%m-%dT%H:%M:%S%z'
- VERSION =
'4.0.0'
Class Method Summary
collapse
Class Method Details
.clear_file_system ⇒ Object
43
44
45
|
# File 'lib/eternity.rb', line 43
def self.clear_file_system
FileUtils.rm_rf blob_path if Dir.exist? blob_path
end
|
.clear_redis ⇒ Object
37
38
39
40
41
|
# 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) ⇒ Object
28
29
30
31
|
# 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 ⇒ Object
33
34
35
|
# File 'lib/eternity.rb', line 33
def self.redis_keys
connection.call 'KEYS', keyspace['*']
end
|