soft_evict_cache 0.1.0 → 0.1.1

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: 7d7e60d3d8f66aff63eda2a979293a47591fe314
4
- data.tar.gz: d96610c2b95d5fcc3deffb3e3f83ae0d7a9bedd5
3
+ metadata.gz: bd45cbbcd3207ffa787cc059433d689527c8ab54
4
+ data.tar.gz: ef8204a7a066cc3cb92fef4932c703706af4ea17
5
5
  SHA512:
6
- metadata.gz: c4476231fe4c884649cd8cdfbe6089c8718f509cfeee73c33e93070386c519af65fa7bda9501849781159a4ae373bd1e96180bc1aca0a6c1cfd3dbda5c1a07ea
7
- data.tar.gz: 59c7d983c5dec3d40680ab719edd8b0c492317801f392d767045014549a26c1425807b0384fd636b32e3e627e7157c893834c0037a8329555314aa84435d4cfb
6
+ metadata.gz: 1739db7c966a4ab3fd80d7127e3f695b5cd60e179c756c0fab57d7c6ec43e1f70e58d48201ad98518eb43407a87303adf1280346774bf21ddf8ee1f182b58d32
7
+ data.tar.gz: f21352abc2a190e42d32de7b28521e6b6650492f6bb46869210405f302dec6a4528d0de2c423fb62a37e8dd2fa10033446c4261c99fcbdccd3fb3230e1096600
@@ -37,9 +37,14 @@ module SoftEvictCache
37
37
  else
38
38
  promise = Concurrent::Promise.new
39
39
  @agent.send do |old_entry|
40
- new_entry = update_entry(old_entry)
41
- promise.set(new_entry.value)
42
- new_entry
40
+ begin
41
+ new_entry = update_entry(old_entry)
42
+ promise.set(new_entry.value)
43
+ new_entry
44
+ rescue Exception => e
45
+ promise.fail(e)
46
+ raise e
47
+ end
43
48
  end
44
49
  promise.value
45
50
  end
@@ -1,3 +1,3 @@
1
1
  module SoftEvictCache
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soft_evict_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tejas Dinkar