class App::Cache::SqliteStore

Public Class Methods

db_path() click to toggle source
# File lib/app/app/cache.rb, line 11
def self.db_path
  @db_path ||= begin
    path = "#{Dir.home}/cache/#{File.basename(App.root)}/a#{App.root.uid64}.sqlite3"
    FileUtils.mkdir_p File.dirname(path)
    path
  end
end
new() click to toggle source
Calls superclass method
# File lib/app/app/cache.rb, line 19
def initialize
  @db = MicroSql.create(SqliteStore.db_path)
  super @db, "cache"
end