Sha256: 086336ef7376480c895f59385c0dcadbc9a89976f1b017edb4182b0ae4e5f1cb
Contents?: true
Size: 373 Bytes
Versions: 40
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true module Motor module Resources module CustomSqlColumnsCache CACHE_STORE = ActiveSupport::Cache::MemoryStore.new(size: 5.megabytes) module_function def call(sql) CACHE_STORE.fetch(sql.hash) do Queries::RunQuery.call(Query.new(sql_body: sql), limit: 0).columns end end end end end
Version data entries
40 entries across 40 versions & 1 rubygems