find_cache 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGE-LOG +3 -0
- data/README.rdoc +17 -0
- data/lib/find_cache/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +102 -0
- data/test/dummy/tmp/cache/275/5B0/User%2F8 +0 -0
- data/test/dummy/tmp/cache/275/6E0/Post%2F1 +0 -0
- data/test/dummy/tmp/cache/276/5C0/User%2F9 +0 -0
- data/test/dummy/tmp/cache/3D4/D70/Comment%2F30 +0 -0
- data/test/dummy/tmp/cache/3D5/D70/Comment%2F22 +0 -0
- data/test/dummy/tmp/cache/3D6/D80/Comment%2F23 +0 -0
- data/test/dummy/tmp/cache/3D7/D90/Comment%2F24 +0 -0
- data/test/dummy/tmp/cache/3D8/DA0/Comment%2F25 +0 -0
- data/test/dummy/tmp/cache/3DA/DC0/Comment%2F27 +0 -0
- data/test/dummy/tmp/cache/3DB/DD0/Comment%2F28 +0 -0
- data/test/dummy/tmp/cache/3DC/DE0/Comment%2F29 +0 -0
- metadata +67 -15
data/CHANGE-LOG
CHANGED
data/README.rdoc
CHANGED
@@ -44,6 +44,23 @@ UserDetail (`belongs_to :user`) ->
|
|
44
44
|
- sex
|
45
45
|
- location
|
46
46
|
|
47
|
+
## For finding a record
|
48
|
+
|
49
|
+
user = User.find_cache(id) # fetches from cache
|
50
|
+
user.user_detail # fetches from cache if 'find_cache_has_one :user_detail, UserDetail, :user_id' added to User model
|
51
|
+
|
52
|
+
user = User.find_by_id(id) # fetches from DB
|
53
|
+
user.user_detail # fetches from DB
|
54
|
+
|
55
|
+
## For fetching multiple ids
|
56
|
+
|
57
|
+
users = User.find_all_cache([1,2,3,4,5])
|
58
|
+
|
59
|
+
## For fetching a record by attribute
|
60
|
+
|
61
|
+
user_detail = UserDetail.find_by_user_id(1) # from db
|
62
|
+
user_detail = UserDetail.find_cache_by_ref(:user_id, 1) # from cache store
|
63
|
+
|
47
64
|
## For counter_cache 'cache invalidation'
|
48
65
|
|
49
66
|
### Create a ruby file under config/initializers and add the following codes:
|
data/lib/find_cache/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -273,3 +273,105 @@ Connecting to database specified by database.yml
|
|
273
273
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1
|
274
274
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
275
275
|
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
276
|
+
Connecting to database specified by database.yml
|
277
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
278
|
+
[1m[35m (0.1ms)[0m begin transaction
|
279
|
+
[1m[36mSQL (7.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
|
280
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
281
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
282
|
+
[1m[35m (74.4ms)[0m commit transaction
|
283
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
284
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
285
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
286
|
+
[1m[35m (0.1ms)[0m begin transaction
|
287
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
|
288
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
289
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
290
|
+
[1m[35m (82.4ms)[0m commit transaction
|
291
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
292
|
+
[1m[35m (0.0ms)[0m begin transaction
|
293
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
|
294
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
295
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
296
|
+
[1m[35m (1.4ms)[0m commit transaction
|
297
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
298
|
+
[1m[35m (0.0ms)[0m begin transaction
|
299
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
|
300
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
301
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
302
|
+
[1m[35m (1.3ms)[0m commit transaction
|
303
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
304
|
+
[1m[35m (0.0ms)[0m begin transaction
|
305
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00], ["post_id", 1], ["updated_at", Fri, 24 Aug 2012 23:10:18 UTC +00:00]]
|
306
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
307
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
308
|
+
[1m[35m (1.8ms)[0m commit transaction
|
309
|
+
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (22, 23, 24, 25) ORDER BY id ASC[0m
|
310
|
+
[1m[35mComment Load (0.4ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (22, 23, 24, 25) ORDER BY id ASC
|
311
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
312
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
314
|
+
[1m[35m (0.1ms)[0m commit transaction
|
315
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
316
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
317
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
318
|
+
[1m[35m (0.1ms)[0m begin transaction
|
319
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Fri, 24 Aug 2012 23:10:19 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Fri, 24 Aug 2012 23:10:19 UTC +00:00]]
|
320
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Fri, 24 Aug 2012 23:10:19 UTC +00:00], ["title", nil], ["updated_at", Fri, 24 Aug 2012 23:10:19 UTC +00:00], ["user_id", 8]]
|
321
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 8 LIMIT 1[0m
|
322
|
+
[1m[35m (1.6ms)[0m commit transaction
|
323
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1[0m
|
324
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1
|
325
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
326
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
327
|
+
Connecting to database specified by database.yml
|
328
|
+
[1m[36mPost Load (19.0ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
329
|
+
[1m[35m (0.1ms)[0m begin transaction
|
330
|
+
[1m[36mSQL (113.1ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:33 UTC +00:00]]
|
331
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
332
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
333
|
+
[1m[35m (93.6ms)[0m commit transaction
|
334
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
335
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
336
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
337
|
+
[1m[35m (0.0ms)[0m begin transaction
|
338
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
|
339
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
340
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
341
|
+
[1m[35m (158.7ms)[0m commit transaction
|
342
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
343
|
+
[1m[35m (0.0ms)[0m begin transaction
|
344
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
|
345
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
346
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
347
|
+
[1m[35m (5.9ms)[0m commit transaction
|
348
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
349
|
+
[1m[35m (0.0ms)[0m begin transaction
|
350
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
|
351
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
352
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
353
|
+
[1m[35m (1.2ms)[0m commit transaction
|
354
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
355
|
+
[1m[35m (0.1ms)[0m begin transaction
|
356
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
|
357
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
358
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
359
|
+
[1m[35m (135.9ms)[0m commit transaction
|
360
|
+
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (27, 28, 29, 30) ORDER BY id ASC[0m
|
361
|
+
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (27, 28, 29, 30) ORDER BY id ASC
|
362
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
363
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
364
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
365
|
+
[1m[35m (0.0ms)[0m commit transaction
|
366
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
367
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
368
|
+
[1m[36mUser Load (10.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
369
|
+
[1m[35m (0.1ms)[0m begin transaction
|
370
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00]]
|
371
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["title", nil], ["updated_at", Sat, 25 Aug 2012 07:12:34 UTC +00:00], ["user_id", 9]]
|
372
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 9 LIMIT 1[0m
|
373
|
+
[1m[35m (1.5ms)[0m commit transaction
|
374
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1[0m
|
375
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1
|
376
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
377
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: find_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,30 +9,46 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: activerecord
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.
|
29
|
+
version: 3.0.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: activesupport
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 3.0.0
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.0.0
|
30
46
|
- !ruby/object:Gem::Dependency
|
31
47
|
name: simple_uuid
|
32
48
|
requirement: !ruby/object:Gem::Requirement
|
33
49
|
none: false
|
34
50
|
requirements:
|
35
|
-
- -
|
51
|
+
- - ! '>='
|
36
52
|
- !ruby/object:Gem::Version
|
37
53
|
version: 0.2.0
|
38
54
|
type: :runtime
|
@@ -40,9 +56,25 @@ dependencies:
|
|
40
56
|
version_requirements: !ruby/object:Gem::Requirement
|
41
57
|
none: false
|
42
58
|
requirements:
|
43
|
-
- -
|
59
|
+
- - ! '>='
|
44
60
|
- !ruby/object:Gem::Version
|
45
61
|
version: 0.2.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 3.2.0
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 3.2.0
|
46
78
|
- !ruby/object:Gem::Dependency
|
47
79
|
name: sqlite3
|
48
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,11 +107,11 @@ dependencies:
|
|
75
107
|
- - ~>
|
76
108
|
- !ruby/object:Gem::Version
|
77
109
|
version: 2.1.0
|
78
|
-
description: ! 'Makes ActiveRecord ''find_by_id, find_by_(attr)'' methods
|
79
|
-
belongs_to relations'' cacheable by id or any referenced columns
|
80
|
-
methods. It also supports fetching multiple records using ids
|
81
|
-
method(if cache store supports multiple reads [hint: memcache_store,
|
82
|
-
supports.]).'
|
110
|
+
description: ! 'Makes ActiveRecord >=3.0.0 ''find_by_id, find_by_(attr)'' methods
|
111
|
+
and ''has_one, belongs_to relations'' cacheable by id or any referenced columns
|
112
|
+
using Rails.cache methods. It also supports fetching multiple records using ids
|
113
|
+
with find_all_cache method(if cache store supports multiple reads [hint: memcache_store,
|
114
|
+
dalli_store supports.]).'
|
83
115
|
email:
|
84
116
|
- mustafaturan.net@gmail.com
|
85
117
|
executables: []
|
@@ -149,7 +181,9 @@ files:
|
|
149
181
|
- test/dummy/tmp/cache/272/580/User%2F5
|
150
182
|
- test/dummy/tmp/cache/273/590/User%2F6
|
151
183
|
- test/dummy/tmp/cache/274/5A0/User%2F7
|
184
|
+
- test/dummy/tmp/cache/275/5B0/User%2F8
|
152
185
|
- test/dummy/tmp/cache/275/6E0/Post%2F1
|
186
|
+
- test/dummy/tmp/cache/276/5C0/User%2F9
|
153
187
|
- test/dummy/tmp/cache/276/6F0/Post%2F2
|
154
188
|
- test/dummy/tmp/cache/277/700/Post%2F3
|
155
189
|
- test/dummy/tmp/cache/3A8/070/Comment%2F7
|
@@ -158,12 +192,20 @@ files:
|
|
158
192
|
- test/dummy/tmp/cache/3D2/D30/Comment%2F10
|
159
193
|
- test/dummy/tmp/cache/3D3/D50/Comment%2F20
|
160
194
|
- test/dummy/tmp/cache/3D4/D50/Comment%2F12
|
195
|
+
- test/dummy/tmp/cache/3D4/D70/Comment%2F30
|
161
196
|
- test/dummy/tmp/cache/3D5/D60/Comment%2F13
|
197
|
+
- test/dummy/tmp/cache/3D5/D70/Comment%2F22
|
162
198
|
- test/dummy/tmp/cache/3D6/D70/Comment%2F14
|
199
|
+
- test/dummy/tmp/cache/3D6/D80/Comment%2F23
|
163
200
|
- test/dummy/tmp/cache/3D7/D80/Comment%2F15
|
201
|
+
- test/dummy/tmp/cache/3D7/D90/Comment%2F24
|
202
|
+
- test/dummy/tmp/cache/3D8/DA0/Comment%2F25
|
164
203
|
- test/dummy/tmp/cache/3D9/DA0/Comment%2F17
|
165
204
|
- test/dummy/tmp/cache/3DA/DB0/Comment%2F18
|
205
|
+
- test/dummy/tmp/cache/3DA/DC0/Comment%2F27
|
166
206
|
- test/dummy/tmp/cache/3DB/DC0/Comment%2F19
|
207
|
+
- test/dummy/tmp/cache/3DB/DD0/Comment%2F28
|
208
|
+
- test/dummy/tmp/cache/3DC/DE0/Comment%2F29
|
167
209
|
- test/dummy/tmp/cache/58D/B70/Post%2Fuser_id-1
|
168
210
|
- test/find_cache_test.rb
|
169
211
|
- test/test_helper.rb
|
@@ -190,7 +232,7 @@ rubyforge_project:
|
|
190
232
|
rubygems_version: 1.8.24
|
191
233
|
signing_key:
|
192
234
|
specification_version: 3
|
193
|
-
summary: Cache for ActiveRecord find_by_id and find_by_(attr) methods.
|
235
|
+
summary: Cache for ActiveRecord >=3.0.0 find_by_id and find_by_(attr) methods.
|
194
236
|
test_files:
|
195
237
|
- test/dummy/app/assets/javascripts/application.js
|
196
238
|
- test/dummy/app/assets/stylesheets/application.css
|
@@ -245,7 +287,9 @@ test_files:
|
|
245
287
|
- test/dummy/tmp/cache/272/580/User%2F5
|
246
288
|
- test/dummy/tmp/cache/273/590/User%2F6
|
247
289
|
- test/dummy/tmp/cache/274/5A0/User%2F7
|
290
|
+
- test/dummy/tmp/cache/275/5B0/User%2F8
|
248
291
|
- test/dummy/tmp/cache/275/6E0/Post%2F1
|
292
|
+
- test/dummy/tmp/cache/276/5C0/User%2F9
|
249
293
|
- test/dummy/tmp/cache/276/6F0/Post%2F2
|
250
294
|
- test/dummy/tmp/cache/277/700/Post%2F3
|
251
295
|
- test/dummy/tmp/cache/3A8/070/Comment%2F7
|
@@ -254,12 +298,20 @@ test_files:
|
|
254
298
|
- test/dummy/tmp/cache/3D2/D30/Comment%2F10
|
255
299
|
- test/dummy/tmp/cache/3D3/D50/Comment%2F20
|
256
300
|
- test/dummy/tmp/cache/3D4/D50/Comment%2F12
|
301
|
+
- test/dummy/tmp/cache/3D4/D70/Comment%2F30
|
257
302
|
- test/dummy/tmp/cache/3D5/D60/Comment%2F13
|
303
|
+
- test/dummy/tmp/cache/3D5/D70/Comment%2F22
|
258
304
|
- test/dummy/tmp/cache/3D6/D70/Comment%2F14
|
305
|
+
- test/dummy/tmp/cache/3D6/D80/Comment%2F23
|
259
306
|
- test/dummy/tmp/cache/3D7/D80/Comment%2F15
|
307
|
+
- test/dummy/tmp/cache/3D7/D90/Comment%2F24
|
308
|
+
- test/dummy/tmp/cache/3D8/DA0/Comment%2F25
|
260
309
|
- test/dummy/tmp/cache/3D9/DA0/Comment%2F17
|
261
310
|
- test/dummy/tmp/cache/3DA/DB0/Comment%2F18
|
311
|
+
- test/dummy/tmp/cache/3DA/DC0/Comment%2F27
|
262
312
|
- test/dummy/tmp/cache/3DB/DC0/Comment%2F19
|
313
|
+
- test/dummy/tmp/cache/3DB/DD0/Comment%2F28
|
314
|
+
- test/dummy/tmp/cache/3DC/DE0/Comment%2F29
|
263
315
|
- test/dummy/tmp/cache/58D/B70/Post%2Fuser_id-1
|
264
316
|
- test/find_cache_test.rb
|
265
317
|
- test/test_helper.rb
|