lib/delorean/base.rb in delorean_lang-0.4.6 vs lib/delorean/base.rb in delorean_lang-0.4.7
- old
+ new
@@ -1,9 +1,12 @@
require 'active_support/time'
require 'active_record'
require 'bigdecimal'
+require 'delorean/cache'
module Delorean
+
+ ::Delorean::Cache.adapter = ::Delorean::Cache::Adapters::RubyCache.new(size_per_class: 1000)
TI_TYPES = [Time, ActiveSupport::TimeWithZone]
DT_TYPES = [Date] + TI_TYPES
NUM_OR_STR = [Numeric, String]
NUM_OR_NIL = [nil, Integer]