Sha256: 03508921fa561b16495955ae4f7871dd4c483ef241812b0b63db68b46b8c8fce
Contents?: true
Size: 850 Bytes
Versions: 2
Compression:
Stored size: 850 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( "#{ENV["MEMCACHED_HOST"] || "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
identity_cache-0.5.1 | test/helpers/update_serialization_format.rb |
identity_cache-0.5.0 | test/helpers/update_serialization_format.rb |