Class: RDB::DebugCallbacks
- Inherits:
-
Object
- Object
- RDB::DebugCallbacks
- Includes:
- ReaderCallbacks
- Defined in:
- lib/rdb/callbacks.rb
Instance Method Summary collapse
- #end_database(database) ⇒ Object
- #end_hash(key, state) ⇒ Object
- #end_list(key, state) ⇒ Object
- #end_rdb ⇒ Object
- #end_set(key, state) ⇒ Object
- #end_sortedset(key, state) ⇒ Object
- #hset(key, field, value, state) ⇒ Object
- #pexpireat(key, expiration, state) ⇒ Object
- #rpush(key, value, state) ⇒ Object
- #sadd(key, value, state) ⇒ Object
- #set(key, value, state) ⇒ Object
- #skip_object(key, state) ⇒ Object
- #start_database(database) ⇒ Object
- #start_hash(key, length, state) ⇒ Object
- #start_list(key, length, state) ⇒ Object
- #start_rdb(version) ⇒ Object
- #start_set(key, length, state) ⇒ Object
- #start_sortedset(key, length, state) ⇒ Object
- #zadd(key, score, value, state) ⇒ Object
Methods included from ReaderCallbacks
Instance Method Details
#end_database(database) ⇒ Object
65 66 67 |
# File 'lib/rdb/callbacks.rb', line 65 def end_database(database) puts "Close database #{database}." end |
#end_hash(key, state) ⇒ Object
121 122 123 |
# File 'lib/rdb/callbacks.rb', line 121 def end_hash(key, state) puts "End hash \"#{key}\"." end |
#end_list(key, state) ⇒ Object
85 86 87 |
# File 'lib/rdb/callbacks.rb', line 85 def end_list(key, state) puts "End list \"#{key}\"." end |
#end_rdb ⇒ Object
57 58 59 |
# File 'lib/rdb/callbacks.rb', line 57 def end_rdb() puts "Close RDB file" end |
#end_set(key, state) ⇒ Object
97 98 99 |
# File 'lib/rdb/callbacks.rb', line 97 def end_set(key, state) puts "End set \"#{key}\"." end |
#end_sortedset(key, state) ⇒ Object
109 110 111 |
# File 'lib/rdb/callbacks.rb', line 109 def end_sortedset(key, state) puts "End sortedset \"#{key}\"." end |
#hset(key, field, value, state) ⇒ Object
117 118 119 |
# File 'lib/rdb/callbacks.rb', line 117 def hset(key, field, value, state) puts "HSET \"#{key}\" \"#{field}\" \"#{value}\"" end |
#pexpireat(key, expiration, state) ⇒ Object
69 70 71 |
# File 'lib/rdb/callbacks.rb', line 69 def pexpireat(key, expiration, state) puts "PEXPIREAT \"#{key}\" \"#{expiration}\"" end |
#rpush(key, value, state) ⇒ Object
81 82 83 |
# File 'lib/rdb/callbacks.rb', line 81 def rpush(key, value, state) puts "RPUSH \"#{key}\" \"#{value}\"" end |
#sadd(key, value, state) ⇒ Object
93 94 95 |
# File 'lib/rdb/callbacks.rb', line 93 def sadd(key, value, state) puts "SADD \"#{key}\" \"#{value}\"" end |
#set(key, value, state) ⇒ Object
73 74 75 |
# File 'lib/rdb/callbacks.rb', line 73 def set(key, value, state) puts "SET \"#{key}\" \"#{value}\"" end |
#skip_object(key, state) ⇒ Object
125 126 127 |
# File 'lib/rdb/callbacks.rb', line 125 def skip_object(key, state) puts "Skipping object for key #{key} of type #{state.type}" end |
#start_database(database) ⇒ Object
61 62 63 |
# File 'lib/rdb/callbacks.rb', line 61 def start_database(database) puts "Open database #{database}." end |
#start_hash(key, length, state) ⇒ Object
113 114 115 |
# File 'lib/rdb/callbacks.rb', line 113 def start_hash(key, length, state) puts "Start hash \"#{key}\" of #{length} members." end |
#start_list(key, length, state) ⇒ Object
77 78 79 |
# File 'lib/rdb/callbacks.rb', line 77 def start_list(key, length, state) puts "Start list \"#{key}\" of #{length} items." end |
#start_rdb(version) ⇒ Object
53 54 55 |
# File 'lib/rdb/callbacks.rb', line 53 def start_rdb(version) puts "Start RDB file - version #{version}" end |
#start_set(key, length, state) ⇒ Object
89 90 91 |
# File 'lib/rdb/callbacks.rb', line 89 def start_set(key, length, state) puts "Start set \"#{key}\" of #{length} members." end |
#start_sortedset(key, length, state) ⇒ Object
101 102 103 |
# File 'lib/rdb/callbacks.rb', line 101 def start_sortedset(key, length, state) puts "Start sortedset \"#{key}\" of #{length} members." end |
#zadd(key, score, value, state) ⇒ Object
105 106 107 |
# File 'lib/rdb/callbacks.rb', line 105 def zadd(key, score, value, state) puts "ZADD \"#{key}\" \"#{score}\" \"#{value}\"" end |