juspay/hyperswitch

[FEATURE] Add multiple insert and delete functionality for in-memory cache

Aperta

#2373 aperta il 26 set 2023

 (13 commenti) (0 reazioni) (1 assegnatario)Rust (4676 fork)batch import
A-frameworkC-featuregood first issue

Metriche repository

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

Descrizione

Feature Description

There are few cases where we insert/delete multiple keys in the cache. So add a function where it takes multiple key values and insert and delete it in the cache.

Possible Implementation

struct CacheValues {
	inner: Vec<String>
}

We can have a struct like this and make modify enum CacheKind to accept CacheValues.

enum CacheKind {
	Accounts(CacheValues),
	.....
}

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