Method: Arango::Cache#to_h

Defined in:
lib/Cache.rb

#to_hObject



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/Cache.rb', line 32

def to_h
  hash = {
    "max": @max,
    "cache": {}
  }
  @cache.each do |key, hash2|
    next if hash2.empty?
    hash[:cache][key] = hash2.keys
  end
  hash
end