arsenal-store · memory
Declared module signatures, types, configuration, and source documentation.
Source: arsenal/crates/arsenal-store/src/memory.rs. SHA-256: c2c9de33edaacd6480db7b26b298e44a069345ddf0b89dab31e8d1e3cc511459.
This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.
memory::InMemorySecretStore
In-memory secret store
pub struct InMemorySecretStore {
}Source line: 22.
memory::InMemorySecretStore::new
Create a new in-memory store with a random encryption key
Errors
Returns an error if key generation fails
pub fn new() -> SecretStoreResult<Self>;Source line: 44.
memory::InMemorySecretStore::with_key
Create with a specific encryption key
#[must_use]
pub fn with_key(key_bytes: [u8; 32]) -> Self;Source line: 56.
memory::InMemorySecretStore::clear
Clear all secrets (for testing)
pub async fn clear(&self);Source line: 96.
memory::InMemorySecretStore::count
Get count of secrets
pub async fn count(&self, tenant_id: &TenantId) -> usize;Source line: 102.