Class: Backup::Configuration::Database::Redis

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/configuration/database/redis.rb

Class Attribute Summary collapse

Method Summary

Methods inherited from Base

defaults

Methods included from Helpers

#clear_defaults!, #load_defaults!

Class Attribute Details

.additional_optionsObject

Additional “redis-cli” options



29
30
31
# File 'lib/backup/configuration/database/redis.rb', line 29

def additional_options
  @additional_options
end

.hostObject

Connectivity options



25
26
27
# File 'lib/backup/configuration/database/redis.rb', line 25

def host
  @host
end

.invoke_saveObject

Determines whether Backup should invoke the SAVE command through the ‘redis-cli’ utility to persist the most recent data before copying over the dump file



21
22
23
# File 'lib/backup/configuration/database/redis.rb', line 21

def invoke_save
  @invoke_save
end

.nameObject

Name of and path to the database that needs to get dumped



11
12
13
# File 'lib/backup/configuration/database/redis.rb', line 11

def name
  @name
end

.passwordObject

Credentials for the specified database



15
16
17
# File 'lib/backup/configuration/database/redis.rb', line 15

def password
  @password
end

.pathObject

Name of and path to the database that needs to get dumped



11
12
13
# File 'lib/backup/configuration/database/redis.rb', line 11

def path
  @path
end

.portObject

Connectivity options



25
26
27
# File 'lib/backup/configuration/database/redis.rb', line 25

def port
  @port
end

.redis_cli_utilityObject

Path to the redis-cli utility (optional)



33
34
35
# File 'lib/backup/configuration/database/redis.rb', line 33

def redis_cli_utility
  @redis_cli_utility
end

.socketObject

Connectivity options



25
26
27
# File 'lib/backup/configuration/database/redis.rb', line 25

def socket
  @socket
end