async fn store(&self, token: &String, string: &String) -> Result<(), PoolErrors> {
        let mut conn = self.pool.get().await?;
        let encrypted_json = self.encryption.encrypt(string.as_bytes());
        let _:() = conn.set(token, encrypted_json).await.unwrap();
        Ok(())
    }
/// Encrypt and Store a string with the given token as the redis key
/// Arguments:
///     * `CreditCard` - the cc object that you wish to store
/// return:
///     the token as String
/// # example
/// ```rust
/// use data_vault::{DataVault, RedisDataVault};
/// use data_vault::encryption::AesGcmSivEncryption;
/// use data_vault::tokenizer::Blake3Tokenizer;
///
/// let token = String::from("abc123");
/// let credit_card_string = String::from("{number: 123}");
/// let data_vault = RedisDataVault::<AesGcmSivEncryption, Blake3Tokenizer>::new().unwrap();
/// data_vault.store(&token, &credit_card_string);
/// ```
Encrypt and Store a string with the given token as the redis key
Arguments:
`CreditCard` - the cc object that you wish to store
return:
the token as String
Encrypt and Store a string with the given token as the redis key Arguments : ` CreditCard ` - the cc object that you wish to store return : the token as String
async fn store(&self, token: &String, string: &String) -> Result<(), PoolErrors> {
        let mut conn = self.pool.get().await?;
        let encrypted_json = self.encryption.encrypt(string.as_bytes());
        let _:() = conn.set(token, encrypted_json).await.unwrap();
        Ok(())
    }
async fn store ( & self , token : & String , string : & String ) -> Result < ( ) , PoolErrors > { let mut conn = self . pool . get ( ) . await ? ; let encrypted_json = self . encryption . encrypt ( string . as_bytes ( ) ) ; let _ : ( ) = conn . set ( token , encrypted_json ) . await . unwrap ( ) ; Ok ( ( ) ) }
Encrypt and Store a string with the given token as the redis key
Arguments:
 `CreditCard` - the cc object that you wish to store
return:
the token as String
Encrypt and Store a string with the given token as the redis key Arguments : ` CreditCard ` - the cc object that you wish to store return : the token as String
&self
token
&String
string
&String
&self
token
&String
string
&String
example
```rust
use data_vault::{DataVault, RedisDataVault};
use data_vault::encryption::AesGcmSivEncryption;
use data_vault::tokenizer::Blake3Tokenizer.

let token = String::from("abc123");
let credit_card_string = String::from("{number: 123}");
let data_vault = RedisDataVault::::new().unwrap();
data_vault.store(&token, &credit_card_string);
```
` ` ` rust use data_vault :: { DataVault RedisDataVault } ; use data_vault :: encryption :: AesGcmSivEncryption ; use data_vault :: tokenizer :: Blake3Tokenizer . let token = String :: from ( " abc123 " ) ; let credit_card_string = String :: from ( " { number : 123 } " ) ; let data_vault = RedisDataVault :::: new () . unwrap () ; data_vault . store ( &token &credit_card_string ) ; ` ` `