juspay/hyperswitch

[FEATURE] Make cache configuration configurable at runtime

Open

#3276 aperta il 8 gen 2024

Vedi su GitHub
 (3 commenti) (0 reazioni) (1 assegnatario)Rust (4676 fork)batch import
C-featureS-awaiting-triagegood first issuehacktoberfest

Metriche repository

Star
 (42.690 star)
Metriche merge PR
 (Merge medio 6g 22h) (213 PR mergiate in 30 g)

Descrizione

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

Guida contributor