From 1fc30f5350325fa1021d653688b2d5d6976a4e33 Mon Sep 17 00:00:00 2001 From: Tyler Heald Date: Wed, 25 Oct 2023 10:56:43 -0400 Subject: [PATCH] removed single threaded cache in favor of just redis cache --- common-app-lib/src/cmr/common_app/services/search.clj | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/common-app-lib/src/cmr/common_app/services/search.clj b/common-app-lib/src/cmr/common_app/services/search.clj index 42478e8b97..52211755ba 100644 --- a/common-app-lib/src/cmr/common_app/services/search.clj +++ b/common-app-lib/src/cmr/common_app/services/search.clj @@ -38,19 +38,17 @@ :default (* 900 1000)}) (defn create-scroll-id-cache - "Returns a single-threaded cache backed by Redis. This cache is used to store a map of cmr scroll-ids to ES scroll-ids + "Returns a cache backed by Redis. This cache is used to store a map of cmr scroll-ids to ES scroll-ids in a consistent way acrosss all instances of search." [] - (stl-cache/create-single-thread-lookup-cache - (redis-cache/create-redis-cache {:ttl (/ (scroll-id-cache-ttl) 1000)}))) + (redis-cache/create-redis-cache {:ttl (/ (scroll-id-cache-ttl) 1000)})) (defn create-scroll-first-page-cache - "Returns a single-threaded cache backed by Redis. This cache is used to store a map of cmr scroll-ids to the first + "Returns a cache backed by Redis. This cache is used to store a map of cmr scroll-ids to the first page of results in a consistent way acrosss all instances of search. This is used to support scrolling with sessions intitiated with a HEAD, GET, or POS request." [] - (stl-cache/create-single-thread-lookup-cache - (redis-cache/create-redis-cache {:ttl (/ (scroll-first-page-cache-ttl) 1000)}))) + (redis-cache/create-redis-cache {:ttl (/ (scroll-first-page-cache-ttl) 1000)})) (defn validate-query "Validates a query model. Throws an exception to return to user with errors.