Sha256: 82042f2637c49c8a03ed8b2feb18874647933613feb3af38a8e8d7cad0739611
Contents?: true
Size: 813 Bytes
Versions: 8
Compression:
Stored size: 813 Bytes
Contents
$LOAD_PATH.unshift File.expand_path("../../../lib", __FILE__) require 'logger' require 'active_record' require 'memcached_store' require 'active_support/cache/memcached_store' require_relative 'serialization_format' require_relative 'database_connection' require_relative 'active_record_objects' require 'identity_cache' include SerializationFormat include ActiveRecordObjects DatabaseConnection.setup DatabaseConnection.drop_tables DatabaseConnection.create_tables IdentityCache.logger = Logger.new(nil) IdentityCache.cache_backend = ActiveSupport::Cache::MemcachedStore.new("localhost:11211", :support_cas => true) setup_models File.open(serialized_record_file, 'w') {|file| serialize(serialized_record, file) } puts "Serialized record to #{serialized_record_file}" IdentityCache.cache.clear teardown_models
Version data entries
8 entries across 8 versions & 1 rubygems