juspay/hyperswitch

[FEATURE] Make cache configuration configurable at runtime

Open

#3,276 创建于 2024年1月8日

在 GitHub 查看
 (3 评论) (0 反应) (1 负责人)Rust (4,676 fork)batch import
C-featureS-awaiting-triagegood first issuehacktoberfest

仓库指标

Star
 (42,690 star)
PR 合并指标
 (平均合并 6天 22小时) (30 天内合并 213 个 PR)

描述

Feature Description

Currently all in-memory cache configuration like TTL, TTI and MAX_CAPACITY are const, Make it configurable through the application config

Possible Implementation

Create

struct Cache {
	ttl: u32,
	tti: u32,
	max_capacity: u32
}

and add it to Settings struct

Have you spent some time checking if this feature request has been raised before?

  • I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None

贡献者指南