Method: Zhangmen::Cli#client_cache

Defined in:
lib/zhangmen/cli.rb

#client_cacheObject

Last snapshot of the client’s metadata cache.



75
76
77
78
79
80
81
# File 'lib/zhangmen/cli.rb', line 75

def client_cache
  if File.exist? client_cache_path
    YAML.load(File.read(client_cache_path)) || {} rescue {}
  else
    {}
  end
end