Skip to content

Commit

Permalink
feat: add cachesize for inference cache
Browse files Browse the repository at this point in the history
Signed-off-by: s0nicboOm <i.kushalbatra@gmail.com>
  • Loading branch information
s0nicboOm committed Aug 31, 2023
1 parent 0243142 commit d7df651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numalogic/udfs/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class InferenceUDF(NumalogicUDF):
def __init__(self, r_client: redis_client_t, pl_conf: Optional[PipelineConf] = None):
super().__init__(is_async=False)
self.model_registry = RedisRegistry(
client=r_client, cache_registry=LocalLRUCache(ttl=LOCAL_CACHE_TTL, cachesize=LOCAL_CACHE_SIZE)
client=r_client,
cache_registry=LocalLRUCache(ttl=LOCAL_CACHE_TTL, cachesize=LOCAL_CACHE_SIZE),
)
self.pl_conf = pl_conf or PipelineConf()

Expand Down

0 comments on commit d7df651

Please sign in to comment.