sig/plugins/response_cache.rbs in httpx-0.23.4 vs sig/plugins/response_cache.rbs in httpx-0.24.0
- old
+ new
@@ -6,11 +6,11 @@
def self?.cacheable_request?: (Request request) -> bool
def self?.cacheable_response?: (response response) -> bool
def self?.cached_response?: (response response) -> bool
class Store
- @store: Hash[String, Array[Response]]
+ @store: Hash[String, Array[Response]] & Mutex_m
def lookup: (Request request) -> Response?
def cached?: (Request request) -> boolish
@@ -19,9 +19,13 @@
def prepare: (Request request) -> void
private
def match_by_vary?: (Request request, Response response) -> bool
+
+ def _get: (Request request) -> Array[Response]?
+
+ def _set: (Request request, Response response) -> void
end
module InstanceMethods
@response_cache: Store
\ No newline at end of file