thermos 0.0.8 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bf15a8378a0c164b8096af5f9463c58d42e19a6
4
- data.tar.gz: 34e7a3edb4fddfca51884451f06145eb46824ff2
3
+ metadata.gz: 0e56655085c639d7a4badf9d091a170799398c2f
4
+ data.tar.gz: 8d78876dfac8afa21c9e0ef83f1ef6355e943da2
5
5
  SHA512:
6
- metadata.gz: 7698f66d4bb60a0b8c4fda490effc9dceee4b6081114dff407c90efffa766266f70bc87c10c49174ec8f587703c8ad8acf85659d9486be9e20f0422608ff219c
7
- data.tar.gz: 51c96a57f18bced54fd424a25d9d72cd04b2307d53980f1f7ea379b97598b15483ca1633995d7fdb7c060b754a932974e602e90d53fe8635f78a809e828de9a6
6
+ metadata.gz: 4ec22dd805affff9b331f0b5fa7249d8c74a4e453c54cd0c8bbe909d41971fcc252f1bd29238b716e04deb4fbd9aabc581df0db55be59ddbad94c57f0d6f7b7c
7
+ data.tar.gz: 90c16773bac12acf6ba7ad295ed38785b806fab9e9aa24631820ff79be59c51ceb674632a0f22bdf91e737509bde433e22a8df375ca2b81f1f3c2925c6a5becd
@@ -3,7 +3,7 @@ class Thermos::BeverageStorage
3
3
 
4
4
  def add_beverage(beverage)
5
5
  @beverages ||= {}
6
- @beverages[beverage.key] = beverage
6
+ @beverages[beverage.key] ||= beverage
7
7
  end
8
8
 
9
9
  def get_beverage(key)
@@ -1,3 +1,3 @@
1
1
  module Thermos
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.0"
3
3
  end
Binary file
@@ -152,3 +152,8 @@ true by adding the following to your application.rb file:
152
152
   (0.1ms) begin transaction
153
153
   (0.0ms) commit transaction
154
154
   (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
155
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
156
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
157
+  (0.1ms) begin transaction
158
+  (0.1ms) commit transaction
159
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
@@ -2297,3 +2297,303 @@ ThermosTest: test_rebuilds_the_cache_on_primary_model_change
2297
2297
  [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 0471df84-b002-4c33-b5d1-6bdfce03f390) to Inline(default) with arguments: #<GlobalID:0x007fe18898a8e8 @uri=#<URI::GID gid://dummy/Category/322908140>>
2298
2298
   (0.1ms) RELEASE SAVEPOINT active_record_1
2299
2299
   (0.2ms) rollback transaction
2300
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2301
+  (0.0ms) PRAGMA foreign_keys
2302
+  (0.1ms) PRAGMA foreign_keys = OFF
2303
+  (0.0ms) begin transaction
2304
+ Fixture Delete (1.8ms) DELETE FROM "products"
2305
+ Fixture Delete (1.0ms) DELETE FROM "categories"
2306
+ Fixture Delete (0.5ms) DELETE FROM "category_items"
2307
+ Fixture Delete (0.5ms) DELETE FROM "stores"
2308
+ Fixture Insert (0.8ms) INSERT INTO "products" ("name", "created_at", "updated_at", "id") VALUES ('glove', '2018-10-16 14:00:21.112152', '2018-10-16 14:00:21.112152', 469160771)
2309
+ Fixture Insert (0.1ms) INSERT INTO "categories" ("name", "created_at", "updated_at", "id", "store_id") VALUES ('baseball', '2018-10-16 14:00:21.114283', '2018-10-16 14:00:21.114283', 322908140, 868874525)
2310
+ Fixture Insert (0.1ms) INSERT INTO "category_items" ("name", "created_at", "updated_at", "id", "category_id", "product_id") VALUES ('baseball glove', '2018-10-16 14:00:21.116511', '2018-10-16 14:00:21.116511', 678302810, 322908140, 469160771)
2311
+ Fixture Insert (0.1ms) INSERT INTO "stores" ("name", "created_at", "updated_at", "id") VALUES ('sports store', '2018-10-16 14:00:21.118109', '2018-10-16 14:00:21.118109', 868874525)
2312
+  (2.5ms) commit transaction
2313
+  (0.1ms) PRAGMA foreign_keys = 1
2314
+  (0.0ms) begin transaction
2315
+ ----------------------------------------------------------------
2316
+ ThermosTest: test_pre-builds_cache_for_new_primary_model_records
2317
+ ----------------------------------------------------------------
2318
+  (0.1ms) SAVEPOINT active_record_1
2319
+ Category Create (0.5ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-16 14:00:21.138243"], ["updated_at", "2018-10-16 14:00:21.138243"]]
2320
+ [ActiveJob] Category Load (0.6ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]]
2321
+ [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] Performing Thermos::RefillJob (Job ID: 2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa) from Inline(default) with arguments: #<GlobalID:0x007fc5c7be1998 @uri=#<URI::GID gid://dummy/Category/322908141>>
2322
+ [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] [Thermos::RebuildCacheJob] [1bead20d-fa1f-4403-b681-efacc8d445de] Performing Thermos::RebuildCacheJob (Job ID: 1bead20d-fa1f-4403-b681-efacc8d445de) from Inline(default) with arguments: "key", "foo"
2323
+ [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] [Thermos::RebuildCacheJob] [1bead20d-fa1f-4403-b681-efacc8d445de] Performed Thermos::RebuildCacheJob (Job ID: 1bead20d-fa1f-4403-b681-efacc8d445de) from Inline(default) in 3.49ms
2324
+ [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] Enqueued Thermos::RebuildCacheJob (Job ID: 1bead20d-fa1f-4403-b681-efacc8d445de) to Inline(default) with arguments: "key", "foo"
2325
+ [ActiveJob] [Thermos::RefillJob] [2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa] Performed Thermos::RefillJob (Job ID: 2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa) from Inline(default) in 10.26ms
2326
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 2dcbe1d5-7839-4e97-9b0c-5a334a1c32fa) to Inline(default) with arguments: #<GlobalID:0x007fc5c8b38950 @uri=#<URI::GID gid://dummy/Category/322908141>>
2327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2328
+  (0.4ms) rollback transaction
2329
+  (0.1ms) begin transaction
2330
+ ---------------------------------------------------------------------
2331
+ ThermosTest: test_rebuilds_the_cache_on_has_many_through_model_change
2332
+ ---------------------------------------------------------------------
2333
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2334
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]
2335
+  (0.1ms) SAVEPOINT active_record_1
2336
+ Product Update (0.6ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.186437"], ["id", 469160771]]
2337
+ [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]
2338
+ [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] Performing Thermos::RefillJob (Job ID: 5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1) from Inline(default) with arguments: #<GlobalID:0x007fc5c8af98b8 @uri=#<URI::GID gid://dummy/Product/469160771>>
2339
+ [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160771]]
2340
+ [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] [Thermos::RebuildCacheJob] [c8b3ea73-73bb-4345-bdf7-9d02b524335e] Performing Thermos::RebuildCacheJob (Job ID: c8b3ea73-73bb-4345-bdf7-9d02b524335e) from Inline(default) with arguments: "key", 322908140
2341
+ [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] [Thermos::RebuildCacheJob] [c8b3ea73-73bb-4345-bdf7-9d02b524335e] Performed Thermos::RebuildCacheJob (Job ID: c8b3ea73-73bb-4345-bdf7-9d02b524335e) from Inline(default) in 0.81ms
2342
+ [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] Enqueued Thermos::RebuildCacheJob (Job ID: c8b3ea73-73bb-4345-bdf7-9d02b524335e) to Inline(default) with arguments: "key", 322908140
2343
+ [ActiveJob] [Thermos::RefillJob] [5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1] Performed Thermos::RefillJob (Job ID: 5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1) from Inline(default) in 16.91ms
2344
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 5dc89b40-28cc-481c-a5ad-8c2cdf85dbb1) to Inline(default) with arguments: #<GlobalID:0x007fc5c7bbc0f8 @uri=#<URI::GID gid://dummy/Product/469160771>>
2345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2346
+  (0.5ms) rollback transaction
2347
+  (0.1ms) begin transaction
2348
+ ------------------------------------------------------
2349
+ ThermosTest: test_keeps_the_cache_warm_using_keep_warm
2350
+ ------------------------------------------------------
2351
+  (0.1ms) rollback transaction
2352
+  (0.1ms) begin transaction
2353
+ -----------------------------------------------------------------------------------
2354
+ ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_model_change
2355
+ -----------------------------------------------------------------------------------
2356
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2357
+  (0.1ms) SAVEPOINT active_record_1
2358
+ CategoryItem Create (0.8ms) INSERT INTO "category_items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-16 14:00:21.243339"], ["updated_at", "2018-10-16 14:00:21.243339"]]
2359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2360
+  (0.1ms) SAVEPOINT active_record_1
2361
+ CategoryItem Update (0.2ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.250132"], ["id", 678302811]]
2362
+ [ActiveJob] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]]
2363
+ [ActiveJob] [Thermos::RefillJob] [72332f4b-88ef-4a7f-8fd4-d9ad10219947] Performing Thermos::RefillJob (Job ID: 72332f4b-88ef-4a7f-8fd4-d9ad10219947) from Inline(default) with arguments: #<GlobalID:0x007fc5c8a920c8 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
2364
+ [ActiveJob] [Thermos::RefillJob] [72332f4b-88ef-4a7f-8fd4-d9ad10219947]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]]
2365
+ [ActiveJob] [Thermos::RefillJob] [72332f4b-88ef-4a7f-8fd4-d9ad10219947] Performed Thermos::RefillJob (Job ID: 72332f4b-88ef-4a7f-8fd4-d9ad10219947) from Inline(default) in 3.13ms
2366
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 72332f4b-88ef-4a7f-8fd4-d9ad10219947) to Inline(default) with arguments: #<GlobalID:0x007fc5c92bbf60 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
2367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2368
+  (0.4ms) rollback transaction
2369
+  (0.3ms) begin transaction
2370
+ ----------------------------------------------------------------------------------
2371
+ ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_primary_model_change
2372
+ ----------------------------------------------------------------------------------
2373
+ Category Load (0.9ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2374
+  (0.1ms) SAVEPOINT active_record_1
2375
+ Category Create (0.8ms) INSERT INTO "categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "bar"], ["created_at", "2018-10-16 14:00:21.265676"], ["updated_at", "2018-10-16 14:00:21.265676"]]
2376
+ [ActiveJob] Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908141], ["LIMIT", 1]]
2377
+ [ActiveJob] [Thermos::RefillJob] [ea509e8b-4e06-43c4-ae1c-6cbfed741bec] Performing Thermos::RefillJob (Job ID: ea509e8b-4e06-43c4-ae1c-6cbfed741bec) from Inline(default) with arguments: #<GlobalID:0x007fc5c8a6b608 @uri=#<URI::GID gid://dummy/Category/322908141>>
2378
+ [ActiveJob] [Thermos::RefillJob] [ea509e8b-4e06-43c4-ae1c-6cbfed741bec] Performed Thermos::RefillJob (Job ID: ea509e8b-4e06-43c4-ae1c-6cbfed741bec) from Inline(default) in 0.28ms
2379
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ea509e8b-4e06-43c4-ae1c-6cbfed741bec) to Inline(default) with arguments: #<GlobalID:0x007fc5c7aeded8 @uri=#<URI::GID gid://dummy/Category/322908141>>
2380
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2381
+  (0.1ms) SAVEPOINT active_record_1
2382
+ Category Update (0.1ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.282813"], ["id", 322908140]]
2383
+ [ActiveJob] Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2384
+ [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] Performing Thermos::RefillJob (Job ID: 6ee55d45-7506-45cb-a865-6a029b27abaf) from Inline(default) with arguments: #<GlobalID:0x007fc5c92926d8 @uri=#<URI::GID gid://dummy/Category/322908140>>
2385
+ [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] [Thermos::RebuildCacheJob] [a9e0dd01-7a19-481b-8edf-2e77d979dcb5] Performing Thermos::RebuildCacheJob (Job ID: a9e0dd01-7a19-481b-8edf-2e77d979dcb5) from Inline(default) with arguments: "key", 322908140
2386
+ [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] [Thermos::RebuildCacheJob] [a9e0dd01-7a19-481b-8edf-2e77d979dcb5] Performed Thermos::RebuildCacheJob (Job ID: a9e0dd01-7a19-481b-8edf-2e77d979dcb5) from Inline(default) in 2.55ms
2387
+ [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] Enqueued Thermos::RebuildCacheJob (Job ID: a9e0dd01-7a19-481b-8edf-2e77d979dcb5) to Inline(default) with arguments: "key", 322908140
2388
+ [ActiveJob] [Thermos::RefillJob] [6ee55d45-7506-45cb-a865-6a029b27abaf] Performed Thermos::RefillJob (Job ID: 6ee55d45-7506-45cb-a865-6a029b27abaf) from Inline(default) in 3.73ms
2389
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 6ee55d45-7506-45cb-a865-6a029b27abaf) to Inline(default) with arguments: #<GlobalID:0x007fc5c8a5ac40 @uri=#<URI::GID gid://dummy/Category/322908140>>
2390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2391
+  (0.6ms) rollback transaction
2392
+  (0.1ms) begin transaction
2393
+ -------------------------------------------------------------------------------------------
2394
+ ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_has_many_through_model_change
2395
+ -------------------------------------------------------------------------------------------
2396
+ Category Load (0.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2397
+  (0.1ms) SAVEPOINT active_record_1
2398
+ Product Create (1.1ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-16 14:00:21.299518"], ["updated_at", "2018-10-16 14:00:21.299518"]]
2399
+ [ActiveJob] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]]
2400
+ [ActiveJob] [Thermos::RefillJob] [bdb055a5-8add-4f52-82a6-5371f44fd19a] Performing Thermos::RefillJob (Job ID: bdb055a5-8add-4f52-82a6-5371f44fd19a) from Inline(default) with arguments: #<GlobalID:0x007fc5c7a9ff80 @uri=#<URI::GID gid://dummy/Product/469160772>>
2401
+ [ActiveJob] [Thermos::RefillJob] [bdb055a5-8add-4f52-82a6-5371f44fd19a] Performed Thermos::RefillJob (Job ID: bdb055a5-8add-4f52-82a6-5371f44fd19a) from Inline(default) in 0.05ms
2402
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: bdb055a5-8add-4f52-82a6-5371f44fd19a) to Inline(default) with arguments: #<GlobalID:0x007fc5c7ab7ce8 @uri=#<URI::GID gid://dummy/Product/469160772>>
2403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2404
+  (0.1ms) SAVEPOINT active_record_1
2405
+ Product Update (0.2ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.314428"], ["id", 469160772]]
2406
+ [ActiveJob] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]]
2407
+ [ActiveJob] [Thermos::RefillJob] [a55b8392-5477-4c61-95ca-b7bc284d55f1] Performing Thermos::RefillJob (Job ID: a55b8392-5477-4c61-95ca-b7bc284d55f1) from Inline(default) with arguments: #<GlobalID:0x007fc5c824ca80 @uri=#<URI::GID gid://dummy/Product/469160772>>
2408
+ [ActiveJob] [Thermos::RefillJob] [a55b8392-5477-4c61-95ca-b7bc284d55f1]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]]
2409
+ [ActiveJob] [Thermos::RefillJob] [a55b8392-5477-4c61-95ca-b7bc284d55f1] Performed Thermos::RefillJob (Job ID: a55b8392-5477-4c61-95ca-b7bc284d55f1) from Inline(default) in 2.07ms
2410
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a55b8392-5477-4c61-95ca-b7bc284d55f1) to Inline(default) with arguments: #<GlobalID:0x007fc5c7ab7ce8 @uri=#<URI::GID gid://dummy/Product/469160772>>
2411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2412
+  (0.4ms) rollback transaction
2413
+  (0.2ms) begin transaction
2414
+ --------------------------------------------------------------------------
2415
+ ThermosTest: test_accepts_and_can_rebuild_off_of_an_id_other_than_the_'id'
2416
+ --------------------------------------------------------------------------
2417
+ Category Load (2.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2418
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]
2419
+  (0.1ms) SAVEPOINT active_record_1
2420
+ Category Update (3.1ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.338177"], ["id", 322908140]]
2421
+ [ActiveJob] Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2422
+ [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] Performing Thermos::RefillJob (Job ID: 41f27ac7-b91f-4dd3-9745-eca8429d270c) from Inline(default) with arguments: #<GlobalID:0x007fc5c923a190 @uri=#<URI::GID gid://dummy/Category/322908140>>
2423
+ [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] [Thermos::RebuildCacheJob] [dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f] Performing Thermos::RebuildCacheJob (Job ID: dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f) from Inline(default) with arguments: "key", "foo"
2424
+ [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] [Thermos::RebuildCacheJob] [dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f] Performed Thermos::RebuildCacheJob (Job ID: dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f) from Inline(default) in 4.49ms
2425
+ [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] Enqueued Thermos::RebuildCacheJob (Job ID: dc0492fe-0f8a-4f7b-b105-8b76e6da3a9f) to Inline(default) with arguments: "key", "foo"
2426
+ [ActiveJob] [Thermos::RefillJob] [41f27ac7-b91f-4dd3-9745-eca8429d270c] Performed Thermos::RefillJob (Job ID: 41f27ac7-b91f-4dd3-9745-eca8429d270c) from Inline(default) in 5.73ms
2427
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 41f27ac7-b91f-4dd3-9745-eca8429d270c) to Inline(default) with arguments: #<GlobalID:0x007fc5c823cd38 @uri=#<URI::GID gid://dummy/Category/322908140>>
2428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2429
+  (0.1ms) SAVEPOINT active_record_1
2430
+ Product Update (0.2ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.356022"], ["id", 469160771]]
2431
+ [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]
2432
+ [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] Performing Thermos::RefillJob (Job ID: b26a9055-f62e-4bff-934f-e688177f7db0) from Inline(default) with arguments: #<GlobalID:0x007fc5c92181f8 @uri=#<URI::GID gid://dummy/Product/469160771>>
2433
+ [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0]  (0.2ms) SELECT "categories"."name" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160771]]
2434
+ [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] [Thermos::RebuildCacheJob] [b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd] Performing Thermos::RebuildCacheJob (Job ID: b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd) from Inline(default) with arguments: "key", "foo"
2435
+ [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] [Thermos::RebuildCacheJob] [b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd] Performed Thermos::RebuildCacheJob (Job ID: b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd) from Inline(default) in 1.75ms
2436
+ [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] Enqueued Thermos::RebuildCacheJob (Job ID: b5e8ffe0-db27-4f4d-9e1f-a8eef131c4fd) to Inline(default) with arguments: "key", "foo"
2437
+ [ActiveJob] [Thermos::RefillJob] [b26a9055-f62e-4bff-934f-e688177f7db0] Performed Thermos::RefillJob (Job ID: b26a9055-f62e-4bff-934f-e688177f7db0) from Inline(default) in 3.8ms
2438
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: b26a9055-f62e-4bff-934f-e688177f7db0) to Inline(default) with arguments: #<GlobalID:0x007fc5c7a76770 @uri=#<URI::GID gid://dummy/Product/469160771>>
2439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2440
+  (0.4ms) rollback transaction
2441
+  (0.1ms) begin transaction
2442
+ ----------------------------------------------------------------
2443
+ ThermosTest: test_re-builds_the_cache_for_new_belongs_to_records
2444
+ ----------------------------------------------------------------
2445
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2446
+  (0.1ms) SAVEPOINT active_record_1
2447
+ Store Create (0.9ms) INSERT INTO "stores" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "foo"], ["created_at", "2018-10-16 14:00:21.416598"], ["updated_at", "2018-10-16 14:00:21.416598"]]
2448
+ Category Update (0.5ms) UPDATE "categories" SET "store_id" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["store_id", 868874526], ["updated_at", "2018-10-16 14:00:21.420098"], ["id", 322908140]]
2449
+ [ActiveJob] Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2450
+ [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] Performing Thermos::RefillJob (Job ID: d6d52362-13c9-45e8-b9b4-f9daf0b07e71) from Inline(default) with arguments: #<GlobalID:0x007fc5c89338d0 @uri=#<URI::GID gid://dummy/Category/322908140>>
2451
+ [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] [Thermos::RebuildCacheJob] [be74976e-a631-4f74-a5dd-ca8614a54f47] Performing Thermos::RebuildCacheJob (Job ID: be74976e-a631-4f74-a5dd-ca8614a54f47) from Inline(default) with arguments: "key", 322908140
2452
+ [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] [Thermos::RebuildCacheJob] [be74976e-a631-4f74-a5dd-ca8614a54f47] Performed Thermos::RebuildCacheJob (Job ID: be74976e-a631-4f74-a5dd-ca8614a54f47) from Inline(default) in 2.09ms
2453
+ [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] Enqueued Thermos::RebuildCacheJob (Job ID: be74976e-a631-4f74-a5dd-ca8614a54f47) to Inline(default) with arguments: "key", 322908140
2454
+ [ActiveJob] [Thermos::RefillJob] [d6d52362-13c9-45e8-b9b4-f9daf0b07e71] Performed Thermos::RefillJob (Job ID: d6d52362-13c9-45e8-b9b4-f9daf0b07e71) from Inline(default) in 3.18ms
2455
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: d6d52362-13c9-45e8-b9b4-f9daf0b07e71) to Inline(default) with arguments: #<GlobalID:0x007fc5c9130060 @uri=#<URI::GID gid://dummy/Category/322908140>>
2456
+ [ActiveJob] Store Load (0.2ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]]
2457
+ [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] Performing Thermos::RefillJob (Job ID: ac97eddc-d07d-4b49-aa43-9e86c0dd9076) from Inline(default) with arguments: #<GlobalID:0x007fc5c90ea510 @uri=#<URI::GID gid://dummy/Store/868874526>>
2458
+ [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]]
2459
+ [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] [Thermos::RebuildCacheJob] [19d948f2-74c2-405e-b3dc-a009b4cdeebb] Performing Thermos::RebuildCacheJob (Job ID: 19d948f2-74c2-405e-b3dc-a009b4cdeebb) from Inline(default) with arguments: "key", 322908140
2460
+ [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] [Thermos::RebuildCacheJob] [19d948f2-74c2-405e-b3dc-a009b4cdeebb] Performed Thermos::RebuildCacheJob (Job ID: 19d948f2-74c2-405e-b3dc-a009b4cdeebb) from Inline(default) in 1.21ms
2461
+ [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] Enqueued Thermos::RebuildCacheJob (Job ID: 19d948f2-74c2-405e-b3dc-a009b4cdeebb) to Inline(default) with arguments: "key", 322908140
2462
+ [ActiveJob] [Thermos::RefillJob] [ac97eddc-d07d-4b49-aa43-9e86c0dd9076] Performed Thermos::RefillJob (Job ID: ac97eddc-d07d-4b49-aa43-9e86c0dd9076) from Inline(default) in 4.84ms
2463
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: ac97eddc-d07d-4b49-aa43-9e86c0dd9076) to Inline(default) with arguments: #<GlobalID:0x007fc5c90f19a0 @uri=#<URI::GID gid://dummy/Store/868874526>>
2464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2465
+  (0.4ms) rollback transaction
2466
+  (0.1ms) begin transaction
2467
+ --------------------------------------------------------------
2468
+ ThermosTest: test_re-builds_the_cache_for_new_has_many_records
2469
+ --------------------------------------------------------------
2470
+ Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2471
+  (0.2ms) SAVEPOINT active_record_1
2472
+ CategoryItem Create (0.8ms) INSERT INTO "category_items" ("category_id", "created_at", "updated_at") VALUES (?, ?, ?) [["category_id", 322908140], ["created_at", "2018-10-16 14:00:21.480870"], ["updated_at", "2018-10-16 14:00:21.480870"]]
2473
+ [ActiveJob] CategoryItem Load (0.3ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]]
2474
+ [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] Performing Thermos::RefillJob (Job ID: 761e31a5-e9a3-4fa9-81cb-30925121b8ee) from Inline(default) with arguments: #<GlobalID:0x007fc5c90ab4a0 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
2475
+ [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee]  (0.1ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302811]]
2476
+ [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] [Thermos::RebuildCacheJob] [19d73530-ba01-4135-9aa4-cc25b69105f8] Performing Thermos::RebuildCacheJob (Job ID: 19d73530-ba01-4135-9aa4-cc25b69105f8) from Inline(default) with arguments: "key", 322908140
2477
+ [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] [Thermos::RebuildCacheJob] [19d73530-ba01-4135-9aa4-cc25b69105f8] Performed Thermos::RebuildCacheJob (Job ID: 19d73530-ba01-4135-9aa4-cc25b69105f8) from Inline(default) in 3.03ms
2478
+ [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] Enqueued Thermos::RebuildCacheJob (Job ID: 19d73530-ba01-4135-9aa4-cc25b69105f8) to Inline(default) with arguments: "key", 322908140
2479
+ [ActiveJob] [Thermos::RefillJob] [761e31a5-e9a3-4fa9-81cb-30925121b8ee] Performed Thermos::RefillJob (Job ID: 761e31a5-e9a3-4fa9-81cb-30925121b8ee) from Inline(default) in 5.17ms
2480
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 761e31a5-e9a3-4fa9-81cb-30925121b8ee) to Inline(default) with arguments: #<GlobalID:0x007fc5c88d0f50 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
2481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2482
+  (0.4ms) rollback transaction
2483
+  (0.1ms) begin transaction
2484
+ ---------------------------------------------------------------------------------------------------------------------------
2485
+ ThermosTest: test_only_rebuilds_cache_for_stated_dependencies,_even_if_another_cache_has_an_associated_model_of_the_primary
2486
+ ---------------------------------------------------------------------------------------------------------------------------
2487
+ Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2488
+ Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]
2489
+  (0.1ms) SAVEPOINT active_record_1
2490
+ Product Update (0.8ms) UPDATE "products" SET "name" = ?, "updated_at" = ? WHERE "products"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.519725"], ["id", 469160771]]
2491
+ [ActiveJob] Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160771], ["LIMIT", 1]]
2492
+ [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] Performing Thermos::RefillJob (Job ID: e3e51754-9136-4b29-9bd2-7a1b99107cfd) from Inline(default) with arguments: #<GlobalID:0x007fc5c7de26e8 @uri=#<URI::GID gid://dummy/Product/469160771>>
2493
+ [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] [Thermos::RebuildCacheJob] [1ca196a1-697a-497c-b9e7-54b7e355a619] Performing Thermos::RebuildCacheJob (Job ID: 1ca196a1-697a-497c-b9e7-54b7e355a619) from Inline(default) with arguments: "product_key", 469160771
2494
+ [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] [Thermos::RebuildCacheJob] [1ca196a1-697a-497c-b9e7-54b7e355a619] Performed Thermos::RebuildCacheJob (Job ID: 1ca196a1-697a-497c-b9e7-54b7e355a619) from Inline(default) in 11.72ms
2495
+ [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] Enqueued Thermos::RebuildCacheJob (Job ID: 1ca196a1-697a-497c-b9e7-54b7e355a619) to Inline(default) with arguments: "product_key", 469160771
2496
+ [ActiveJob] [Thermos::RefillJob] [e3e51754-9136-4b29-9bd2-7a1b99107cfd] Performed Thermos::RefillJob (Job ID: e3e51754-9136-4b29-9bd2-7a1b99107cfd) from Inline(default) in 12.46ms
2497
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: e3e51754-9136-4b29-9bd2-7a1b99107cfd) to Inline(default) with arguments: #<GlobalID:0x007fc5c7ddb528 @uri=#<URI::GID gid://dummy/Product/469160771>>
2498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2499
+  (0.3ms) rollback transaction
2500
+  (0.1ms) begin transaction
2501
+ ----------------------------------------------------------------------
2502
+ ThermosTest: test_re-builds_the_cache_for_new_has_many_through_records
2503
+ ----------------------------------------------------------------------
2504
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2505
+  (0.1ms) SAVEPOINT active_record_1
2506
+ Product Create (0.6ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-16 14:00:21.568097"], ["updated_at", "2018-10-16 14:00:21.568097"]]
2507
+ CategoryItem Create (0.6ms) INSERT INTO "category_items" ("category_id", "product_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["category_id", 322908140], ["product_id", 469160772], ["created_at", "2018-10-16 14:00:21.569757"], ["updated_at", "2018-10-16 14:00:21.569757"]]
2508
+ [ActiveJob] CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302811], ["LIMIT", 1]]
2509
+ [ActiveJob] [Thermos::RefillJob] [a8cf1e48-f179-4c3c-993f-0e961a00d9ad] Performing Thermos::RefillJob (Job ID: a8cf1e48-f179-4c3c-993f-0e961a00d9ad) from Inline(default) with arguments: #<GlobalID:0x007fc5c7dcac28 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
2510
+ [ActiveJob] [Thermos::RefillJob] [a8cf1e48-f179-4c3c-993f-0e961a00d9ad] Performed Thermos::RefillJob (Job ID: a8cf1e48-f179-4c3c-993f-0e961a00d9ad) from Inline(default) in 0.06ms
2511
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: a8cf1e48-f179-4c3c-993f-0e961a00d9ad) to Inline(default) with arguments: #<GlobalID:0x007fc5c96ba6e8 @uri=#<URI::GID gid://dummy/CategoryItem/678302811>>
2512
+ [ActiveJob] Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 469160772], ["LIMIT", 1]]
2513
+ [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] Performing Thermos::RefillJob (Job ID: 925428a9-4676-4ede-90bd-970644367591) from Inline(default) with arguments: #<GlobalID:0x007fc5c96b1728 @uri=#<URI::GID gid://dummy/Product/469160772>>
2514
+ [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" INNER JOIN "products" ON "products"."id" = "category_items"."product_id" WHERE "products"."id" = ? [["id", 469160772]]
2515
+ [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] [Thermos::RebuildCacheJob] [b3db99c7-2799-4507-93ea-b1c9f12e6e78] Performing Thermos::RebuildCacheJob (Job ID: b3db99c7-2799-4507-93ea-b1c9f12e6e78) from Inline(default) with arguments: "key", 322908140
2516
+ [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] [Thermos::RebuildCacheJob] [b3db99c7-2799-4507-93ea-b1c9f12e6e78] Performed Thermos::RebuildCacheJob (Job ID: b3db99c7-2799-4507-93ea-b1c9f12e6e78) from Inline(default) in 5.85ms
2517
+ [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] Enqueued Thermos::RebuildCacheJob (Job ID: b3db99c7-2799-4507-93ea-b1c9f12e6e78) to Inline(default) with arguments: "key", 322908140
2518
+ [ActiveJob] [Thermos::RefillJob] [925428a9-4676-4ede-90bd-970644367591] Performed Thermos::RefillJob (Job ID: 925428a9-4676-4ede-90bd-970644367591) from Inline(default) in 10.0ms
2519
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 925428a9-4676-4ede-90bd-970644367591) to Inline(default) with arguments: #<GlobalID:0x007fc5c7dc3220 @uri=#<URI::GID gid://dummy/Product/469160772>>
2520
+  (0.6ms) RELEASE SAVEPOINT active_record_1
2521
+  (0.4ms) rollback transaction
2522
+  (0.3ms) begin transaction
2523
+ -------------------------------------------------------------
2524
+ ThermosTest: test_rebuilds_the_cache_on_has_many_model_change
2525
+ -------------------------------------------------------------
2526
+ Category Load (1.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2527
+ CategoryItem Load (0.1ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]
2528
+  (0.1ms) SAVEPOINT active_record_1
2529
+ CategoryItem Update (0.4ms) UPDATE "category_items" SET "name" = ?, "updated_at" = ? WHERE "category_items"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.605297"], ["id", 678302810]]
2530
+ [ActiveJob] CategoryItem Load (0.2ms) SELECT "category_items".* FROM "category_items" WHERE "category_items"."id" = ? LIMIT ? [["id", 678302810], ["LIMIT", 1]]
2531
+ [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] Performing Thermos::RefillJob (Job ID: 995ea3c2-cf3e-434a-a9d2-511a0fd57297) from Inline(default) with arguments: #<GlobalID:0x007fc5c9680560 @uri=#<URI::GID gid://dummy/CategoryItem/678302810>>
2532
+ [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "category_items" ON "category_items"."category_id" = "categories"."id" WHERE "category_items"."id" = ? [["id", 678302810]]
2533
+ [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] [Thermos::RebuildCacheJob] [50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41] Performing Thermos::RebuildCacheJob (Job ID: 50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41) from Inline(default) with arguments: "key", 322908140
2534
+ [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] [Thermos::RebuildCacheJob] [50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41] Performed Thermos::RebuildCacheJob (Job ID: 50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41) from Inline(default) in 3.18ms
2535
+ [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] Enqueued Thermos::RebuildCacheJob (Job ID: 50909ae6-1d4f-4a67-b8fa-cbcf56ddbc41) to Inline(default) with arguments: "key", 322908140
2536
+ [ActiveJob] [Thermos::RefillJob] [995ea3c2-cf3e-434a-a9d2-511a0fd57297] Performed Thermos::RefillJob (Job ID: 995ea3c2-cf3e-434a-a9d2-511a0fd57297) from Inline(default) in 7.18ms
2537
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 995ea3c2-cf3e-434a-a9d2-511a0fd57297) to Inline(default) with arguments: #<GlobalID:0x007fc5c866c160 @uri=#<URI::GID gid://dummy/CategoryItem/678302810>>
2538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2539
+  (0.3ms) rollback transaction
2540
+  (0.1ms) begin transaction
2541
+ -------------------------------------------------------------------------------------
2542
+ ThermosTest: test_does_not_rebuild_the_cache_for_an_unrelated_belongs_to_model_change
2543
+ -------------------------------------------------------------------------------------
2544
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2545
+  (0.1ms) SAVEPOINT active_record_1
2546
+ Store Create (4.9ms) INSERT INTO "stores" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-10-16 14:00:21.636642"], ["updated_at", "2018-10-16 14:00:21.636642"]]
2547
+ [ActiveJob] Store Load (0.2ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]]
2548
+ [ActiveJob] [Thermos::RefillJob] [174e998a-9580-4e27-aad4-8d7295a8ff7a] Performing Thermos::RefillJob (Job ID: 174e998a-9580-4e27-aad4-8d7295a8ff7a) from Inline(default) with arguments: #<GlobalID:0x007fc5c8ca0270 @uri=#<URI::GID gid://dummy/Store/868874526>>
2549
+ [ActiveJob] [Thermos::RefillJob] [174e998a-9580-4e27-aad4-8d7295a8ff7a] Performed Thermos::RefillJob (Job ID: 174e998a-9580-4e27-aad4-8d7295a8ff7a) from Inline(default) in 0.07ms
2550
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 174e998a-9580-4e27-aad4-8d7295a8ff7a) to Inline(default) with arguments: #<GlobalID:0x007fc5c8caafb8 @uri=#<URI::GID gid://dummy/Store/868874526>>
2551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2552
+  (0.1ms) SAVEPOINT active_record_1
2553
+ Store Update (0.1ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.657090"], ["id", 868874526]]
2554
+ [ActiveJob] Store Load (0.2ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874526], ["LIMIT", 1]]
2555
+ [ActiveJob] [Thermos::RefillJob] [76e0f285-ecfd-477a-943a-54fd72487f82] Performing Thermos::RefillJob (Job ID: 76e0f285-ecfd-477a-943a-54fd72487f82) from Inline(default) with arguments: #<GlobalID:0x007fc5c863eda0 @uri=#<URI::GID gid://dummy/Store/868874526>>
2556
+ [ActiveJob] [Thermos::RefillJob] [76e0f285-ecfd-477a-943a-54fd72487f82]  (0.3ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874526]]
2557
+ [ActiveJob] [Thermos::RefillJob] [76e0f285-ecfd-477a-943a-54fd72487f82] Performed Thermos::RefillJob (Job ID: 76e0f285-ecfd-477a-943a-54fd72487f82) from Inline(default) in 6.08ms
2558
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 76e0f285-ecfd-477a-943a-54fd72487f82) to Inline(default) with arguments: #<GlobalID:0x007fc5c8caafb8 @uri=#<URI::GID gid://dummy/Store/868874526>>
2559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2560
+  (1.3ms) rollback transaction
2561
+  (0.1ms) begin transaction
2562
+ ---------------------------------------------------------------
2563
+ ThermosTest: test_rebuilds_the_cache_on_belongs_to_model_change
2564
+ ---------------------------------------------------------------
2565
+ Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2566
+ Store Load (0.3ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]
2567
+  (0.1ms) SAVEPOINT active_record_1
2568
+ Store Update (0.4ms) UPDATE "stores" SET "name" = ?, "updated_at" = ? WHERE "stores"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.683268"], ["id", 868874525]]
2569
+ [ActiveJob] Store Load (0.1ms) SELECT "stores".* FROM "stores" WHERE "stores"."id" = ? LIMIT ? [["id", 868874525], ["LIMIT", 1]]
2570
+ [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] Performing Thermos::RefillJob (Job ID: 2214b629-8ace-4ae1-805d-37157297e6c8) from Inline(default) with arguments: #<GlobalID:0x007fc5c8627218 @uri=#<URI::GID gid://dummy/Store/868874525>>
2571
+ [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8]  (0.2ms) SELECT "categories"."id" FROM "categories" INNER JOIN "stores" ON "stores"."id" = "categories"."store_id" WHERE "stores"."id" = ? [["id", 868874525]]
2572
+ [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] [Thermos::RebuildCacheJob] [c2e56da2-18ec-4e60-88a1-4c276aa96434] Performing Thermos::RebuildCacheJob (Job ID: c2e56da2-18ec-4e60-88a1-4c276aa96434) from Inline(default) with arguments: "key", 322908140
2573
+ [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] [Thermos::RebuildCacheJob] [c2e56da2-18ec-4e60-88a1-4c276aa96434] Performed Thermos::RebuildCacheJob (Job ID: c2e56da2-18ec-4e60-88a1-4c276aa96434) from Inline(default) in 1.59ms
2574
+ [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] Enqueued Thermos::RebuildCacheJob (Job ID: c2e56da2-18ec-4e60-88a1-4c276aa96434) to Inline(default) with arguments: "key", 322908140
2575
+ [ActiveJob] [Thermos::RefillJob] [2214b629-8ace-4ae1-805d-37157297e6c8] Performed Thermos::RefillJob (Job ID: 2214b629-8ace-4ae1-805d-37157297e6c8) from Inline(default) in 4.75ms
2576
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 2214b629-8ace-4ae1-805d-37157297e6c8) to Inline(default) with arguments: #<GlobalID:0x007fc5c862cee8 @uri=#<URI::GID gid://dummy/Store/868874525>>
2577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2578
+  (0.4ms) rollback transaction
2579
+  (0.1ms) begin transaction
2580
+ ---------------------------------------------------------
2581
+ ThermosTest: test_keeps_the_cache_warm_using_fill_/_drink
2582
+ ---------------------------------------------------------
2583
+  (0.3ms) rollback transaction
2584
+  (0.1ms) begin transaction
2585
+ ------------------------------------------------------------
2586
+ ThermosTest: test_rebuilds_the_cache_on_primary_model_change
2587
+ ------------------------------------------------------------
2588
+ Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2589
+  (0.1ms) SAVEPOINT active_record_1
2590
+ Category Update (2.5ms) UPDATE "categories" SET "name" = ?, "updated_at" = ? WHERE "categories"."id" = ? [["name", "foo"], ["updated_at", "2018-10-16 14:00:21.724960"], ["id", 322908140]]
2591
+ [ActiveJob] Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ? [["id", 322908140], ["LIMIT", 1]]
2592
+ [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] Performing Thermos::RefillJob (Job ID: 770b673a-2a5c-4ce5-ac86-7a1aad43c996) from Inline(default) with arguments: #<GlobalID:0x007fc5c8c836c0 @uri=#<URI::GID gid://dummy/Category/322908140>>
2593
+ [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] [Thermos::RebuildCacheJob] [cea4027e-1169-4523-97b6-2a6cf6bc00dc] Performing Thermos::RebuildCacheJob (Job ID: cea4027e-1169-4523-97b6-2a6cf6bc00dc) from Inline(default) with arguments: "key", 322908140
2594
+ [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] [Thermos::RebuildCacheJob] [cea4027e-1169-4523-97b6-2a6cf6bc00dc] Performed Thermos::RebuildCacheJob (Job ID: cea4027e-1169-4523-97b6-2a6cf6bc00dc) from Inline(default) in 1.15ms
2595
+ [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] Enqueued Thermos::RebuildCacheJob (Job ID: cea4027e-1169-4523-97b6-2a6cf6bc00dc) to Inline(default) with arguments: "key", 322908140
2596
+ [ActiveJob] [Thermos::RefillJob] [770b673a-2a5c-4ce5-ac86-7a1aad43c996] Performed Thermos::RefillJob (Job ID: 770b673a-2a5c-4ce5-ac86-7a1aad43c996) from Inline(default) in 4.02ms
2597
+ [ActiveJob] Enqueued Thermos::RefillJob (Job ID: 770b673a-2a5c-4ce5-ac86-7a1aad43c996) to Inline(default) with arguments: #<GlobalID:0x007fc5c86057f8 @uri=#<URI::GID gid://dummy/Category/322908140>>
2598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2599
+  (1.4ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thermos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Thal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-15 00:00:00.000000000 Z
11
+ date: 2018-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails