/// Gets the account (tokens remain encrypted) corresponding to the provided `id` from Redis.
Gets the account (tokens remain encrypted) corresponding to the provided `id` from Redis.
Gets the account ( tokens remain encrypted ) corresponding to the provided ` id ` from Redis .
async fn redis_get_account(
        &self,
        id: Uuid,
    ) -> Result<AccountWithEncryptedTokens, NodeStoreError> {
        let mut accounts: Vec<AccountWithEncryptedTokens> = LOAD_ACCOUNTS
            .arg(&*prefixed_key(&self.db_prefix, ACCOUNTS_KEY))
            .arg(&*prefixed_key(&self.db_prefix, SETTLEMENT_ENGINES_KEY))
            .arg(RedisAccountId(id))
            .invoke_async(&mut self.connection.clone())
            .await?;
        accounts
            .pop()
            .ok_or_else(|| NodeStoreError::AccountNotFound(id.to_string()))
    }
async fn redis_get_account ( & self , id : Uuid , ) -> Result < AccountWithEncryptedTokens , NodeStoreError > { let mut accounts : Vec < AccountWithEncryptedTokens > = LOAD_ACCOUNTS . arg ( & * prefixed_key ( & self . db_prefix , ACCOUNTS_KEY ) ) . arg ( & * prefixed_key ( & self . db_prefix , SETTLEMENT_ENGINES_KEY ) ) . arg ( RedisAccountId ( id ) ) . invoke_async ( & mut self . connection . clone ( ) ) . await ? ; accounts . pop ( ) . ok_or_else ( | | NodeStoreError :: AccountNotFound ( id . to_string ( ) ) ) }
Gets the account (tokens remain encrypted) corresponding to the provided `id` from Redis.
Gets the account ( tokens remain encrypted ) corresponding to the provided ` id ` from Redis .
&self
id
Uuid