juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
11.65k stars 1.23k forks source link

[FEATURE] Make cache configuration configurable at runtime #3276

Open dracarys18 opened 8 months ago

dracarys18 commented 8 months ago

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?

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None

Norman-Lee commented 4 months ago

Hey @dracarys18 looking at the good first issues website and came across this repo, was wondering if I could get started working on this. I'd like to pick up some rust and seems like it might be a good start here.

dracarys18 commented 4 months ago

Sure I am assigning the issue to you @Norman-Lee

Norman-Lee commented 2 months ago

It's me on discord