bmg-redis 0.21.4 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bmg/redis/relation.rb +1 -0
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec0886c03014352ae18ef4123e567946b9727659
4
- data.tar.gz: 2d2c1a7f5aec01e7c1e950d92f1c0d28731a9dab
3
+ metadata.gz: abeed740931e874db5966ae216035097031247e8
4
+ data.tar.gz: f94969ddadfd73eeec26facfde7c28852640bb50
5
5
  SHA512:
6
- metadata.gz: a445f95c30afcb1b03b56f32c84c590d4e9f168e285c61dca375cf3c67d69fcbcf2e958885ba2391885cb16ca8ab9bc6907f707cfa5ad329d5e6ac481bb2bf65
7
- data.tar.gz: c91d3813471396293bd714660af209e6e06795c279868a3e4d2de3f96301c9840ee080693f23ff75b40c4335ce08d4b6a917097cbaf322a45dc046d6dae5c29e
6
+ metadata.gz: 8f9298112d74a17dae1d697d0adae0a0405490a44d664042e9f4f0f86717082abf01f20909258c88dfa5ba8120b57282413b2d720f49cd9a0e3bb9e7de0c1ee2
7
+ data.tar.gz: 56bf194f90cf9b3be4dd234d2eeb89601476432d275679bd6349442675dff3930a4a0b85b48204f2bbf58e18376f59f3034c85fd693947d4b56e17051436829a
@@ -63,6 +63,7 @@ module Bmg
63
63
  key = extract_key(tuple)
64
64
  serialized = serializer.serialize(tuple)
65
65
  redis.set(key, serialized)
66
+ redis.expire(key, options[:ttl]) if options[:ttl]
66
67
  self
67
68
  end
68
69
  private :insert_one
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmg-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.4
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-08 00:00:00.000000000 Z
11
+ date: 2024-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bmg
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.21.4
19
+ version: 0.22.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.21.4
26
+ version: 0.22.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis
29
29
  requirement: !ruby/object:Gem::Requirement