We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d92a8eb + 53c36f1 commit 85684dbCopy full SHA for 85684db
ldclient-rb.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
26
spec.add_runtime_dependency "json", "~> 1.8"
27
spec.add_runtime_dependency "faraday", "~> 0.9"
28
- spec.add_runtime_dependency "faraday-http-cache", "~> 0.4"
+ spec.add_runtime_dependency "faraday-http-cache", "~> 1.3.0"
29
spec.add_runtime_dependency "thread_safe", "~> 0.3"
30
spec.add_runtime_dependency "net-http-persistent", "~> 2.9"
31
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0.0"
lib/ldclient-rb/store.rb
@@ -35,5 +35,12 @@ def read(key)
35
def write(key, value)
36
@cache[key] = value
37
end
38
+
39
+ #
40
+ # Delete a value in the cache
41
+ # @param key [Object] the cache key
42
+ def delete(key)
43
+ @cache.delete(key)
44
+ end
45
46
0 commit comments