Skip to content

Commit 85684db

Browse files
authored
Merge pull request #65 from carwow/master
Bump faraday-http-cache version
2 parents d92a8eb + 53c36f1 commit 85684db

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ldclient-rb.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
2525

2626
spec.add_runtime_dependency "json", "~> 1.8"
2727
spec.add_runtime_dependency "faraday", "~> 0.9"
28-
spec.add_runtime_dependency "faraday-http-cache", "~> 0.4"
28+
spec.add_runtime_dependency "faraday-http-cache", "~> 1.3.0"
2929
spec.add_runtime_dependency "thread_safe", "~> 0.3"
3030
spec.add_runtime_dependency "net-http-persistent", "~> 2.9"
3131
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0.0"

lib/ldclient-rb/store.rb

+7
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,12 @@ def read(key)
3535
def write(key, value)
3636
@cache[key] = value
3737
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
3845
end
3946
end

0 commit comments

Comments
 (0)