Sha256: 0cb737de85f0922a69fda9ba50ff6195d9f759b49ffa1be9b29a4ad784264d0e
Contents?: true
Size: 870 Bytes
Versions: 3
Compression:
Stored size: 870 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' $memcached_port = 11211 $mysql_port = 3306 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:#{$memcached_port}", :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
3 entries across 3 versions & 1 rubygems