Provides a key‑value storage abstraction for router data with Redis and database fallback, supporting insert, update, and filter operations.
// Source: https://github.com/mperkins0155/hyperswitch | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use std::fmt::Debug;
use common_enums::enums::MerchantStorageScheme;
use common_utils::{
fallback_reverse_lookup_not_found, request_context::RequestContext,
types::keymanager::KeyManagerState,
};
use diesel_models::{errors::DatabaseError, kv};
use error_stack::ResultExt;
use hyperswitch_domain_models::{
behaviour::{Conversion, ReverseConversion},
merchant_key_store::MerchantKeyStore,
};
#[cfg(not(feature = "payouts"))]
use hyperswitch_domain_models::{PayoutAttemptInterface, PayoutsInterface};
use hyperswitch_masking::StrongSecret;
use redis_interface::{errors::Re
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key