sized_list 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/active_support/cache/lru.rb +6 -4
- data/sized_list.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
@@ -58,10 +58,12 @@ module ActiveSupport
|
|
58
58
|
def write(name, value, options=nil)
|
59
59
|
instrument(:write, name, options) do |payload|
|
60
60
|
@sized_list[name] = value
|
61
|
-
payload
|
62
|
-
|
63
|
-
|
64
|
-
|
61
|
+
if payload
|
62
|
+
payload[:eviction] = @sized_list.evicted?
|
63
|
+
payload[:total_evictions] = @sized_list.evictions
|
64
|
+
payload[:eviction_frequency] = @sized_list.eviction_frequency
|
65
|
+
payload[:last_time_between_evictions] = @sized_list.last_time_between_evictions
|
66
|
+
end
|
65
67
|
end
|
66
68
|
end
|
67
69
|
|
data/sized_list.gemspec
CHANGED