File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,14 @@ def create_noop_cache(**_kwargs) -> PipelineCache:
102102 return NoopPipelineCache ()
103103
104104
105+ def create_memory_cache (** kwargs ) -> PipelineCache :
106+ """Create a memory cache implementation."""
107+ return InMemoryCache (** kwargs )
108+
109+
105110# --- register built-in cache implementations ---
106111CacheFactory .register (CacheType .none .value , create_noop_cache )
107- CacheFactory .register (CacheType .memory .value , InMemoryCache )
112+ CacheFactory .register (CacheType .memory .value , create_memory_cache )
108113CacheFactory .register (CacheType .file .value , create_file_cache )
109114CacheFactory .register (CacheType .blob .value , create_blob_cache )
110115CacheFactory .register (CacheType .cosmosdb .value , create_cosmosdb_cache )
You can’t perform that action at this time.
0 commit comments