evt-entity_store 2.0.3.1 → 2.0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/entity_store/entity_store.rb +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66591e41058eeb5dbc6be824de6243fc04a9f55afee51168b2218718237877f6
|
4
|
+
data.tar.gz: 723d78ac5cdcdb9a5083204aaae48c02d89c92819613637c8cf915a2c3d840a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da2feb2f85c3885cb2343cd264df1b14b7133528426c35962ec5959ba0c2796e2f2af02b851c6273d3bdc289f1e276590334bf026648218961cb4e7e62bedf7d
|
7
|
+
data.tar.gz: c825ed22e98ae09c465fb91333f3224e88fec01acd7f9ca9a8c3a848f157430e02a485aa61385f70ede0e2c5ee00cd757986ab405711d4ea07be665fe9811800
|
@@ -27,12 +27,12 @@ module EntityStore
|
|
27
27
|
|
28
28
|
attr_accessor :category
|
29
29
|
attr_accessor :specifier
|
30
|
+
attr_accessor :snapshot_interval
|
30
31
|
|
31
32
|
virtual :reader_class
|
32
33
|
virtual :projection_class
|
33
34
|
virtual :reader_batch_size
|
34
35
|
virtual :snapshot_class
|
35
|
-
virtual :snapshot_interval
|
36
36
|
|
37
37
|
virtual :configure
|
38
38
|
|
@@ -59,11 +59,14 @@ module EntityStore
|
|
59
59
|
instance.specifier = specifier unless specifier.nil?
|
60
60
|
specifier ||= instance.specifier
|
61
61
|
|
62
|
+
instance.snapshot_interval = snapshot_interval unless snapshot_interval.nil?
|
63
|
+
snapshot_interval ||= instance.snapshot_interval
|
64
|
+
|
62
65
|
EntityCache.configure(
|
63
66
|
instance,
|
64
67
|
entity_class,
|
65
68
|
specifier,
|
66
|
-
persist_interval:
|
69
|
+
persist_interval: snapshot_interval,
|
67
70
|
external_store: instance.snapshot_class,
|
68
71
|
external_store_session: session,
|
69
72
|
attr_name: :cache
|
@@ -256,7 +259,7 @@ module EntityStore
|
|
256
259
|
end
|
257
260
|
|
258
261
|
define_method :snapshot_interval do
|
259
|
-
interval
|
262
|
+
@snapshot_interval ||= interval
|
260
263
|
end
|
261
264
|
end
|
262
265
|
alias_method :snapshot, :snapshot_macro
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-entity_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-entity_projection
|